Community
Participate
Working Groups
Request to split lexer and parser into seperate grammars to enable support for both free and fixed form Fortran.
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.
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.
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.
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.
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.
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.