This repository contains grammars of proramming languages for Iguana. The grammars are extracted from their corresponding language specification manual. For some grammars, we also provide a version of the grammar that has a natural expression grammar (Natural Grammar) which is declaratively disambiguated.
At the moment, we have the following grammars:
- Java 7: Specification Grammar, Natural grammar
- C# 5 Specification Grammar
- C Specification Grammar
- OCaml 4.002 Specification Grammar
- Haskell Specification Grammar, Indentation-sensitive Grammar
- XML [Specification Grammar] (https://github.com/iguana-parser/grammars/blob/master/src/xml/XML.rsc)
- Python Specification Grammar Work in progress.
- Scala Specification Grammar Work in progress.
The grammars are written in Rascal. The integration of Iguana into Rascal is a work in progress. To use the Iguana backend for Rascal, you need the Iguana branch of Rascal. We will gradually update this page on how to use Iguana grammars.