Home

Awesome

Open Fortran Parser (OFP)

version 0.8.7

Contents

<a name="description">Description</a>

The Open Fortran Parser (OFP) project provides a Fortran 2008 compliant parser and associated tools. These tools provide a Java and C API for actions that are called when parser rules are completed. These actions allow a parser consumer to build a custom Abstract Syntax Tree (AST).

If you need access to a complete source-to-source Fortran compiler infrastructure incorporating OFP, please consider using ROSE.

The OFP parser is based on an ANTLR 3 grammar and ANTLR version 3.5.2 tools are used to generate the Fortran parser (written in Java). The C action interfaces are currently provided by JNI.

<a name="resources">Resources</a>

<a name="installation-instructions">Installation instructions</a>

<a name="documentation">Documentation</a>

<a name="running-the-parser">Running the parser</a>

  export CLASSPATH=/usr/local/antlr/lib/antlr-3.5.2-complete.jar:/usr/local/ofp/lib/OpenFortranParser-0.8.7.jar
  java fortran.ofp.FrontEnd [--verbose] filename

<a name="help">Help</a>

<a name="git-repository">git Repository</a>

<a name="directories">Directories</a>

src

build

tests