Skip to content

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

Notifications You must be signed in to change notification settings

ghareeb-falazi/grammars-v4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ANTLR 76.2%
  • Assembly 13.6%
  • Java 8.8%
  • C# 0.8%
  • Swift 0.3%
  • PLSQL 0.1%
  • Other 0.2%