1. Assumptions: A1. Fixed form: No WS between characters/digits in identifiers, keywords and constants. A2. If col:5 is not blank (WS), col:6 should be blank. A3. Line continuation should not break any identifier, keyword or constants. A4. No comment appears in a continued statement 2. Incomplete rules: R507: * R1510 generic stmt R514: * R1111 change team construct * R1148 select rank construct R726: derived type def * Sub-rules are not completed and tested. R901: 'RE', 'IM' for complex number fields R926: 'STAT', 'TEAM' and 'TEAM_NUMBER' for image selector spec R928: 'ERRMSG', 'MOLD', 'SOURCE', 'STAT' R931: One branch unfinished. R936: unfinished. 3. Deprecated rules: R605-08: * default_logical_variable * scalar_default_logical_variable R607-08: * default_char_variable * scalar_default_char_variable ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- // R605 default_logical_variable : variable { action.default_logical_variable(); } ; scalar_default_logical_variable : variable { action.scalar_default_logical_variable(); } ; // R607 scalar_default_char_variable : variable { action.scalar_default_char_variable(); } ; ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- TODO: Clean up all Token declarations TODO: 1). Revert the PreprocessorTokenSource and let the PP2Fortran converter to handle the PPNUMBER token (Involved case: '4x4' in a comment line like '! a 4x4 matrix') 2). Check the conversion for '..' as T_DOT_DOT and 'CONTIGUOUS' for T_CONTIGUOUS Ant for new grammar file: