# Generate Parser with Antlr4

## Install Antlr4

Please follow [install antlr4](https://github.com/antlr/antlr4/blob/master/doc/go-target.md) to install the antlr tool.

The version of antlr tool: `4.9`.

## Code Generate

After you install the antlr4, you can generate the parser code in golang with:

```shell
go generate
```

All generated code will be under directory `generated`.
