The doris-parser is a parser for DORIS SQL. It is based on the ANTLR4.
Before build, you need to install the ANTLR4.
requirements:
- https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
- https://github.com/antlr/antlr4/blob/master/doc/go-target.md
./build.sh
- run
./build.sh
to generate the parser code.
Run TestDorisSQLDBSQLParser
in parser_test.go
to test the parser.
go test -v
- ANTLR4 Getting Started https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
- ANTLR4 Go Garget https://github.com/antlr/antlr4/blob/master/doc/go-target.md