Grammatica is a parser generator (compiler compiler) for C# and Java. It improves upon similar tools (like yacc and ANTLR) by creating well-commented and readable source code, by having automatic error recovery and detailed error messages, and by support for testing and debugging grammars without generating source code. Grammatica supports LL(k) grammars with an unlimited number of look-ahead tokens.
| Tags | Software Development Code Generators Text Processing General |
|---|---|
| Licenses | GPL |
| Operating Systems | OS Independent |
| Implementation | C# Java |
Recent releases


Release Notes: Support was added for case-insensitive parsing, advanced regular expressions, and VisualBasic.NET code generation. The parsing speed has also been significantly improved for most grammars.


Release Notes: This version includes Apache Ant integration and support for accessing tokens that were ignored during parsing (such as comments and whitespace). A bug in --profile was also fixed.


Release Notes: This version fixes a major bug in the C# code generation, present in all previous releases. The documentation has also been improved a bit, but no features have been added.


Release Notes: The tokenizer performance has been improved (50% in the average case). This version also contains various minor fixes in the error handling and error messages to further improve usability.


Release Notes: This release adds automatic error recovery to all generated parsers. No changes were made to the grammar files, but the parser API was modified slightly. Two regular expression problems were also fixed.