A collection of grammars to write lexers, parsers, compilers for various languages and purposes.
Provided grammars are mostly for domain-specific languages, but some general-purpose grammars are also provided upon no-use and no-where-else-to-publish rule.
-
md-peg: Markdown grammar and tools in pure Java.
-
md-antlr4: Markdown experimental lexer and parser in ANTLR v4.
-
cfdg: Parser and lexer for Context-Free Design Grammar (CFDG).
-
DLogic: Descriptive Logic grammer.
-
This project is a work in progress...
In this repository, grammars are usually written using the following tools and their respective syntax:
- ANTLR v3
- ANTLR v4
- Parboiled PEG
- PEG.js