https://github.com/libsql/sqlite-antlr4-parser
https://github.com/libsql/sqlite-antlr4-parser
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/libsql/sqlite-antlr4-parser
- Owner: libsql
- License: mit
- Created: 2023-05-11T16:04:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T12:16:24.000Z (over 1 year ago)
- Last Synced: 2025-04-23T03:47:46.800Z (8 months ago)
- Language: ANTLR
- Size: 205 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# THIS PROJECT IS DISCONTINUED! PLEASE USE github.com/tursodatabase/libsql-client-go INSTEAD!
# 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`