Coco/R
Coco/R is a compiler generator that takes wirth syntax notation grammars of a source language and generates a scanner and a parser for that language.[src] The scanner works as a deterministic finite automaton.[src] It supports Unicode characters in UTF-8 encoding and can be made case-sensitive or case-insensitive.[src] It can also recognize tokens based on their right-hand-side context.[src] In addition to terminal symbols the scanner can also recognize pragmas, which are tokens that are not part of the syntax but can occur anywhere in the input stream (e.g.[src] compiler directives or end-of-line characters).[src] The parser uses recursive descent; LL(1) conflicts can be resolved by either a multi-symbol lookahead or by semantic checks.[src] Thus the class of accepted grammars is LL(k) for an arbitrary k.[src] Fuzzy parsing is supported by so-called ANY symbols that match complementary sets of tokens.[src] Semantic actions are written in the same language as the generated scanner and parser.[src] The parser's error handling can be tuned by specifying synchronization points and "weak symbols" in the grammar.[src] Coco/R checks the grammar for completeness, consistency, non-redundancy as well as for LL(1) conflicts.[src] There are versions of Coco/R for Java, C#, C++, Pascal, Modula-2, Modula-3, Delphi, VB.NET, Python, Ruby and other programming languages.[src] The latest versions from the University of Linz are those for C#, Java and C++.…[src]
Coco/R is a compiler generator that takes wirth syntax notation grammars of a source language and generates a scanner and a parser for that language.[src] The scanner works as a deterministic finite automaton.[src] It supports Unicode characters in UTF-8 encoding and can be made case-sensitive or case-insensitive.[src] It can also recognize tokens based on their right-hand-side context.[src] In addition to terminal symbols the scanner can also recognize pragmas, which are tokens that are not part of the syntax but can occur anywhere in the input stream (e.g.[src] compiler directives or end-of-line characters).[src] The parser uses recursive descent; LL(1) conflicts can be resolved by either a multi-symbol lookahead or by semantic checks.[src] Thus the class of accepted grammars is LL(k) for an arbitrary k.[src] Fuzzy parsing is supported by so-called ANY symbols that match complementary sets of tokens.[src] Semantic actions are written in the same language as the generated scanner and parser.[src] The parser's error handling can be tuned by specifying synchronization points and "weak symbols" in the grammar.[src] Coco/R checks the grammar for completeness, consistency, non-redundancy as well as for LL(1) conflicts.[src] There are versions of Coco/R for Java, C#, C++, Pascal, Modula-2, Modula-3, Delphi, VB.NET, Python, Ruby and other programming languages.[src] The latest versions from the University of Linz are those for C#, Java and C++.[src] For the Java version, there is an Eclipse plug-in and for C#, a Visual Studio plug-in.[src] There are also sample grammars for Java and C#.[src] Coco/R was originally developed at the ETHZ and moved with Hanspeter Mössenböck to University of Linz when he got his appointment there.[src] Coco/R is distributed under the terms of a slightly relaxed GNU General Public License.[src] ==See also== ANTLR JavaCC SableCC ==References== ==Bibliography== (A book about using Coco/R for compiler construction.) (NB.[src] The book describes the construction of Coco in Modula-2.) ==External links== Coco/R homepage Coco/R page of Pat Terry Coco/R user manual Coco/R tutorial slides (by Hanspeter Mössenböck) Coco/R Addin for Visual Studio (by Prabir Shrestha) Coco/R Plugin for Visual Studio 2015, 2017[src]
34 sentences · 34 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Coco/R." encyclopegia.org, 2025, https://encyclopegia.org/wiki/coco-r. Accessed 29 November 2026.
Chicago
"Coco/R." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/coco-r.
APA
encyclopegia.org. (2025). Coco/R. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/coco-r
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON