Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 163260 - Separate Fortran lexer and parser
Summary: Separate Fortran lexer and parser
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Lang (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Craig E Rasmussen CLA
QA Contact: Beth Tibbitts CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 16:06 EST by Chris Rickett CLA
Modified: 2011-01-31 08:08 EST (History)
1 user (show)

See Also:


Attachments
tarball containing separate lexer and parser with necessary files to run. (20.43 KB, application/x-tar)
2006-11-02 16:14 EST, Chris Rickett CLA
no flags Details
updated version of separate lexer/parser (21.77 KB, application/x-tar)
2006-11-06 18:26 EST, Chris Rickett CLA
g.watson: iplog+
Details
cvs diff of my local version of the lexer/parser (210.39 KB, application/x-tar)
2006-11-08 21:07 EST, Chris Rickett CLA
g.watson: iplog+
Details
cvs diff containing unit tests for new features/bug fixes (3.94 KB, application/x-tar)
2006-11-08 21:10 EST, Chris Rickett CLA
g.watson: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rickett CLA 2006-11-02 16:06:15 EST
Request to split lexer and parser into seperate grammars to enable support for both free and fixed form Fortran.
Comment 1 Chris Rickett CLA 2006-11-02 16:14:10 EST
Created attachment 53166 [details]
tarball containing separate lexer and parser with necessary files to run.

The tarball contains separate grammars for the lexer and parser, along with the files necessary to run it and a few test simple test cases.
Comment 2 Chris Rickett CLA 2006-11-06 18:26:26 EST
Created attachment 53345 [details]
updated version of separate lexer/parser

The new attachment should correctly handle carriage-return/new-line combinations as a T_EOS (end-of-statement).  Further, it should allow for EOF to occur with a T_EOS, or by itself in place of a T_EOS.  Finally, it should correctly allow more string literals.
Comment 3 Craig E Rasmussen CLA 2006-11-07 14:18:19 EST
This bug is fixed by the patches submitted by crickett@lanl.gov.  I'm going to open a new bug for the T_EOS (end of statement/carriage return/line feed) problem.
Comment 4 Chris Rickett CLA 2006-11-08 12:37:18 EST
the updated version of the lexer/parser has a bug with declarations of character strings, etc., that have the following form:

character (len = 10) name

the parser claims that the 'character' token is not a viable token.  
Comment 5 Chris Rickett CLA 2006-11-08 21:07:30 EST
Created attachment 53525 [details]
cvs diff of my local version of the lexer/parser

this is the diff between my local version of the separate Fortran lexer/parser and the tree.  With this patch applied, a number of bugs should be fixed, including string literals, EOF, T_EOS, and case insensitivity.

ps: the patch file is zipped because it was too large the first time.
Comment 6 Chris Rickett CLA 2006-11-08 21:10:24 EST
Created attachment 53526 [details]
cvs diff containing unit tests for new features/bug fixes

this is cvs diff of my local tree and the tests tree.  it contains new JUnit tests for bug fixes.

ps: zipped it again just to be safe.