fix: 将 libsql-client-go 作为普通目录提交,而非 gitlink
This commit is contained in:
18
go_modules/libsql-client-go/sqliteparser/README.md
Normal file
18
go_modules/libsql-client-go/sqliteparser/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# ANTLR SQLite Parser
|
||||
|
||||
This project is just a generation of a [ANTLR4](https://www.antlr.org/) go parser using [SQLite grammar](https://github.com/antlr/grammars-v4/tree/master/sql/sqlite) from [antlr/grammars-v4](https://github.com/antlr/grammars-v4/tree/master) project. Its only reason to exist is to avoid forcing everyone that want a simple parser to install JAVA.
|
||||
|
||||
You can find the grammar inside `./grammar` and the generated parser inside `./sqliteparser`
|
||||
|
||||
## Generate parser
|
||||
|
||||
### Requirements
|
||||
- JAVA 11+ installed
|
||||
- ANTLR4 compelte java binaries. Link [here](https://www.antlr.org/download.html)
|
||||
- Put the binary inside `/usr/local/lib`
|
||||
|
||||
Important: The parser inside `./sqliteparser` was generated using OpenJDK 11 and ANTLR 4.12.0
|
||||
|
||||
### Steps
|
||||
- Just run `./generate-parser.sh`
|
||||
|
||||
Reference in New Issue
Block a user