/parslr

ANTLR test rig cli for use in CI

Primary LanguagePythonMIT LicenseMIT

Parslr

ANTLR test rig CLI for use in Continuous Integration systems. In short, it generates parser in Java, compiles it, and then tests that no parsing errors occur. At the moment, no validation of output is possible.

Usage

python3 -m parslr parameters

Mandatory parameters are:

  • -g <path> --- path to grammar.
  • -a <path> --- path to complete ANTLR jar.
  • -r <name> --- starting rule.
  • -i <path> --- path to test input or folder with inputs. In the latter case, JUnit result XML may be generated.
  • -o <path> --- path to output JUnit result XML.

The return code is a number of errors during parsing.

License

MIT