FortranAS
January 19, 2024 ยท View on GitHub
FortranAS is an Antlr4 ๐ powered FORTRAN parsing and code clone detection tool. FortranAS leverages grammars-v4 ๐ to generate parsers and lexers and supports any FORTRAN version with available corresponding grammars.
FortranAS Key Features
- Docker build and runtime environment
- Docker build context for Antlr4 and Grammars-v4 (See: Antlr4 Build Context)
- Extensible FORTRAN Grammars via grammars-v4 ๐. FortranAS supports any FORTRAN version with corresponding grammars.
- FORTRAN source representation as Antler4 parse tree
- Conversion of concrete Antlr4 parse tree to generic tree data structure
- Translation of parse tree to abstract syntax tree representation
- Serialization of all data structures(parse trees, abstract syntax trees, Antlr4 tokens) to: JSON, GraphViz DOT (for tree visualization), text file (tree terse string)
- Code clone detection with abstract syntax trees approach using natural language processing metrics such as BLEU Score and Jaro-Winkler-Similarity