/grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.

Primary LanguageANTLR

Travis Status

grammars-v4

Grammars written for ANTLR v4

This repository is a collection of Antlr4 grammars.

The root directory name is the all-lowercase name of the language parsed by the grammar. For example, java, cpp, csharp, c, etc...

Examples

Contributing

The grammars-v4 tree uses Travis in conjunction with antlr4test-maven-plugin to test all grammars against example inputs. This ensures that all grammars on the tree parse, compile and work with the example inputs.

Therefore:

  • Pull requests which cause test failures will be rejected
  • Pull requests which include additional examples to be used as test cases are strongly preferred

License

Beware of the licenses on the individual grammars. There is no common license. When in doubt or you don't know what you're doing, please use the BSD or MIT license.

Testing the Grammars

mvn clean test