Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newca12/the-definitive-antlr4-reference-rs
Examples from Terence Parr's "The Definitive ANTLR 4 Reference" ported to Rust.
https://github.com/newca12/the-definitive-antlr4-reference-rs
Last synced: about 5 hours ago
JSON representation
Examples from Terence Parr's "The Definitive ANTLR 4 Reference" ported to Rust.
- Host: GitHub
- URL: https://github.com/newca12/the-definitive-antlr4-reference-rs
- Owner: newca12
- Created: 2021-10-03T20:48:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-24T07:49:54.000Z (over 2 years ago)
- Last Synced: 2023-03-11T15:11:44.703Z (over 1 year ago)
- Language: Rust
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### About ###
This is a Rust port of the code from Terence Parr's ["The Definitive ANTLR 4 Reference"](https://pragprog.com/titles/tpantlr2/the-definitive-antlr-4-reference/).the-definitive-antlr4-reference-rs is an EDLA project.
The purpose of [edla.org](http://www.edla.org) is to promote the state of the art in various domains.
### Usage ###
The code use [antlr-rust 0.3.0-beta](https://crates.io/crates/antlr_rust/0.3.0-beta).### Issues with antlr4rust (all very minor so far) ###
- starter
- ArrayInitListener in translate.rs show no value in enter_value, exit_value has been used instead.
- tour
- generation with -no-listener -visitor leave LabeledExprListener usage in labeledexprparser.rs and lead to compilation error. Use only -visitor fix it.
- Java.g4 give a bunch of "symbol type conflicts with generated code in target language or runtime" errors.
- Embededed code inside grammar is not portable. This is not an antlr4rust issue, the corresponding examples had been skipped.### License ###
© 2021-2022 Olivier ROLAND. Distributed under the GPLv3 License.