https://github.com/theghosthucodes/tda4r
https://github.com/theghosthucodes/tda4r
antlr go
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theghosthucodes/tda4r
- Owner: TheGhostHuCodes
- Created: 2018-04-27T21:37:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T17:42:06.000Z (over 6 years ago)
- Last Synced: 2023-05-01T03:36:24.551Z (about 3 years ago)
- Topics: antlr, go
- Language: Go
- Size: 127 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Definitive ANTLR 4 Reference, 2nd Edition
My workspace containing code listings from the book ["The Definitive ANTLR 4
Reference, 2nd
Edition"](https://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference),
by Terence Parr.
The code examples in the book are written in Java. However, Go and Python are
also officially supported target languages. I wanted to write in Go and
Python, so examples have been converted to these languages.
## Setup
Install ANTLR using homebrew:
```shell
brew install antlr
```
When using homebrew to install ANTLR, you will need to export a new class path
to be able to use antlr to compile java code:
```shell
export CLASSPATH=".:/usr/local/Cellar/antlr/4.7.1/antlr-4.7.1-complete.jar:$CLASSPATH"
```