This repository has been archived on 2025-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
miniauthold/vendor/github.com/tursodatabase/libsql-client-go/sqliteparser
kekskurse 713975698b
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/playwright Pipeline was successful
ci/woodpecker/push/deplyoment Pipeline was successful
chore: add NewStore function
2025-03-13 15:03:23 +01:00
..
generate-parser.sh chore: add NewStore function 2025-03-13 15:03:23 +01:00
README.md chore: add NewStore function 2025-03-13 15:03:23 +01:00
sqlite_lexer.go chore: add NewStore function 2025-03-13 15:03:23 +01:00
sqlite_parser.go chore: add NewStore function 2025-03-13 15:03:23 +01:00
SQLiteLexer.interp chore: add NewStore function 2025-03-13 15:03:23 +01:00
SQLiteLexer.tokens chore: add NewStore function 2025-03-13 15:03:23 +01:00
SQLiteParser.interp chore: add NewStore function 2025-03-13 15:03:23 +01:00
SQLiteParser.tokens chore: add NewStore function 2025-03-13 15:03:23 +01:00
sqliteparser_base_listener.go chore: add NewStore function 2025-03-13 15:03:23 +01:00
sqliteparser_listener.go chore: add NewStore function 2025-03-13 15:03:23 +01:00

ANTLR SQLite Parser

This project is just a generation of a ANTLR4 go parser using SQLite grammar from antlr/grammars-v4 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
    • 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