encyclopegia.org

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

Related articles

Coco Island

stub · references available

Coco Huemer

stub · references available

Coco Mbassi

stub · references available

Coco Nima

stub · references available

Coco Winkelmann

stub · references available

bonbon coco

stub · references available

Coco

stub · references available

Coco

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1276027269 · 0.5 · snapshot enwiki-001276027269

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.