mhaggag / grammars-v4

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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...

Using the grammars

There is a simple example of using a grammar here

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

About

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


Languages

Language:ANTLR 76.9%Language:Assembly 13.2%Language:Java 8.6%Language:C# 0.8%Language:Swift 0.3%Language:PLSQL 0.2%Language:Python 0.1%Language:Shell 0.1%Language:Makefile 0.0%Language:Visual Basic 0.0%