https://github.com/mgriebling/coco
Swift version of the Coco/R Compiler Generator
https://github.com/mgriebling/coco
coco compiler-compiler compiler-construction swift
Last synced: about 1 month ago
JSON representation
Swift version of the Coco/R Compiler Generator
- Host: GitHub
- URL: https://github.com/mgriebling/coco
- Owner: mgriebling
- License: gpl-2.0
- Created: 2015-08-19T11:06:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T16:14:17.000Z (over 2 years ago)
- Last Synced: 2025-03-26T21:22:02.160Z (about 2 months ago)
- Topics: coco, compiler-compiler, compiler-construction, swift
- Language: Swift
- Homepage:
- Size: 1.26 MB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coco/R
## Swift version of the Coco/R Compiler GeneratorCoco/R is a compiler generator, 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 automaton. The parser
uses a recursive descent architecture. 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.This Swift port has been used to successfully recreate its own parser and scanner from the included Coco.atg attributed grammar file.
Support for other languages and grammar examples are available from the University of Linz at http://www.ssw.uni-linz.ac.at/Coco/.
Coco/R is distributed under the terms of the GNU General Public License (slightly extended).
Swift port by Michael Griebling, 2015.