Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgriebling/coco
Swift version of the Coco/R Compiler Generator
https://github.com/mgriebling/coco
Last synced: about 2 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T16:14:17.000Z (almost 2 years ago)
- Last Synced: 2023-05-03T00:22:39.303Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 1.26 MB
- Stars: 15
- Watchers: 4
- Forks: 4
- 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.