Skip to content

FortranAS is an [Antlr4 πŸ”—](https://github.com/antlr/antlr4) powered FORTRAN parsing and code clone detection tool. FortranAS leverages [grammars-v4 πŸ”—](https://github.com/antlr/grammars-v4/tree/master/fortran) to generate parsers and lexers and supports any FORTRAN version with available corresponding grammars.

License

akoerner/FortranAS

Repository files navigation

FortranAS

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

TOC

  1. Quick Start
  2. Basic Usage
  3. FortranAS Artifacts
  4. FortranAS Config File
  5. FortranAS Command Line Arguments
  6. Troubleshooting
  7. Antlr4 Build Context