forked from jasder/antlr
352 B
352 B
ANTLR4 Language Target, Runtime for Go
Getting started
- Get the runtime and install it on your GOPATH:
go get github.com/antlr/antlr4
- Generate the parser/lexer code:
antlr MyGrammar.g4 -Dlanguage=Go
Referencing in your code
Reference the go runtime package like this:
import "github.com/pboyer/antlr4/runtime/Go/antlr"