Coco/R
From Free net encyclopedia
Coco/R is a compiler generator (Compiler-compiler), which takes an attributed grammar of a source language and generates a scanner and a parser for this language. The scanner works as a deterministic finite state machine. The parser uses recursive descent. LL(1) conflicts can be resolved by a multi-symbol lookahead or by semantic checks. Thus the class of accepted grammars is LL(k) for an arbitrary k.
There are versions of Coco/R for different languages (see below). The latest versions from the University of Linz are those for C# and Java, which can be downloaded from this site. Included are sample parsers for The parser is written in these languages and the grammar parsed is C# or Java.
Coco/R is distributed under the terms of a modified GNU General Public License.