Which Programming Languages Does Grammatica Support?

Updated

Grammatica generates parsers for two target languages: C# (.NET) and Java. If your project is written in either of those, Grammatica can produce a parser for it; if you need a parser in another language, Grammatica is not the right tool.

Supported Targets

Target language Runtime/API Documentation provided
C# .NET .NET (C#) API documentation for generated parsers
Java Java Java API documentation for generated Java parsers

Grammatica describes itself as "a C# and Java parser generator (compiler compiler)," so these two targets are the full scope of what it emits.

What You Get Alongside the Generated Code

  • Reference Manual — reference documentation with examples and usage information, also included in the download package.
  • Java API Documentation — the API for generated Java parsers.
  • .NET API Documentation — the API for generated .NET (C#) parsers.
  • Release Documentation — release information for the latest version.

Practical Implications

  • Choose Grammatica if you are building a parser in Java or C# and want generated source that the project describes as well-commented and readable, with automatic error recovery, detailed error messages, and support for testing and debugging grammars without generating source code.
  • Look elsewhere if your target language is neither Java nor C#. The supported targets are limited to those two, and there is no indication of other backends.

Licensing and Availability

Grammatica is open source under the permissive BSD license. That grants full access to the source code, permits changes, and allows unlimited redistribution and usage in commercial applications. Downloads are available as releases on GitHub with version history, and the project also has a GitHub project page.

For a broader feature comparison against other tools, see the project's own wiki page on why to use (or avoid) Grammatica.