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