File: README.md

package info (click to toggle)
golang-ariga-atlas 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,676 kB
  • sloc: javascript: 592; sql: 404; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### SQLite parser based on ANTLR4

#### Resources

1. SQLite syntax: https://www.sqlite.org/syntaxdiagrams.html
2. Grammar file: https://github.com/antlr/grammars-v4/tree/master/sql/sqlite

#### Run codegen

1. Install `antlr4`: https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#unix
2. Run:
```bash
antlr4 -Dlanguage=Go -package sqliteparse -visitor Lexer.g4 Parser.g4 \
  && mv _lexer.go lexer.go \
  && mv _parser.go parser.go \
  && rm *.interp *.tokens
```