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...
There is a simple example of using a grammar here
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
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.
mvn clean test