rhmoller / 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

grammars-v4

Grammars written for ANTLR v4

This repository is a collection of grammars without actions where the root directory name is the all-lowercase name of the language parsed by the grammar. For example, java, cpp, csharp, c, etc...

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

The directory /support/antlr4test-maven-plugin contains a maven plugin which compiles the grammars and then runs them against examples in the /examples subdirectory to verify that the grammars compile and produce a clean parse for each example.

To use the plugin, you will have to compile and install it.

cd support/
mvn clean package install

You can then test all grammars:

mvn clean test

Travis Status

About

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


Languages

Language:HTML 58.8%Language:ANTLR 23.3%Language:VHDL 8.8%Language:Java 3.3%Language:Objective-C 3.0%Language:Swift 2.0%Language:Pascal 0.3%Language:PHP 0.2%Language:M 0.1%Language:C 0.1%Language:Erlang 0.1%Language:Shell 0.0%Language:Visual Basic 0.0%Language:Lua 0.0%Language:Makefile 0.0%Language:C++ 0.0%Language:MATLAB 0.0%