Re: fortran support

"Martin Stein" <[email protected]> Mon, 19 Jan 2015 09:39:36 +0100
Newsgroups gmane.emacs.cedet
Message-ID <trinity-3715b90b-4c3f-4c47-bbcd-543199edef5b-1421656775912@3capp-gmx-bs44>
Hi Fulvio,

I am currently working on improving the f90 parser. I will still need a few weeks. The parser is already ported to Wisent, produces much more tags with detailed information on types, dimensions, rank etc. It handles continuation lines properly in all "relevant" cases. However, it is still missing type definitions and declarations, interface blocks and some other stuff. I plan to add preprocessor support (very important to me) later on. I will check your testset as soon as I have a first version.

Btw., I am currently investigating the wisent parser with respect to the unmatched syntax cache. I like this feature, but got the impression that it is not intended for general use (more like a debugging feature)? At least there are several issues with wisent in conjunction with EXPANDFULL. If anybody is interested (David Ponce?) to look into these issues I can compose some testcases. (The issues are: (1) Unmatched tokens can end up twice being on the unmatched-syntax-cache [this might be a more serious bug, as this token, stored in wisent-lookahead, can possibly also corrupt the parsing one step up the recursive call chain by the EXPANDFULL macro in some rather rare cases]. (2) Tokens already matched in a partially matched rule which fails the parser are not pushed onto the unmatched
-syntax check, the "if (eq (caar la-elt) wisent-lookahead)" can not catch those errors, but I still do not understand the details.)

Martin

PS: I send this mail a second time, as the first mail seems to get lost. Sorry if it gets send twice finally.

Gesendet: Samstag, 17. Januar 2015 um 09:06 Uhr

Von: "fulvio ciriaco" <[email protected]>

An: [email protected]

Betreff: *** GMX Spamverdacht *** [CEDET-devel] fortran support

Hello,

I have been trying cedet for fortran development these days.

It appears to me that semantic features work only inside program

sections but not inside modules.

Inside a program most features work as expected, even used modules

are parsed.

However inside a module, not even completions for subroutines contained in

the body complete.

Unfortunately, most programming happens inside modules!

Semantic works as expected if I add use clauses inside the subroutines, so

what is missed is probably only the fact that the module body should inherit

all the use clauses of the module and also the module declarations.

I attach the module testmodule.f90 of cedet itself with a subroutine

"testcompletion"

at the bottom prepared for testing and another "testcompletionb" with a

use clause

inside where semantic works as expected.

Ah, I am using cedet from git with emacs 24.4.1

Thank you

Fulvio

------------------------------------------------------------------------------

New Year. New Location. New Benefits. New Data Center in Ashburn, VA.

GigeNET is offering a free month of service with a new server in Ashburn.

Choose from 2 high performing configs, both with 100TB of bandwidth.

Higher redundancy.Lower latency.Increased capacity.Completely compliant.

http://p.sf.net/sfu/gigenet_______________________________________________

Cedet-devel mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/cedet-devel

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel