Menu

Home

Peter B. West

The SimplexParser code was developed using NetBeans 7.3. The code level is JDK 7; the encoding is UTF-8. The NetBeans nbproject directory is included (except for the private subdirectory) in the repository.

Dependencies are resolved with Apache Ivy. The build and test dependencies are Antlr4 and Junit4. The runtime dependency is the Antlr4 runtime jar.

The grammar is quite readably expressed in the SimplexParser.g4 grammar file. This parser can be used to parse a complete simplex tableau (objective function and constraints), the objective function only, the constraints only, or individual inequalities or equalities.

The initial release contains no error recovery or specialised diagnostics. That aside, however, the parser has the potential to be used in interactive environments where a tableau is built up expression at a time.