Skip to content

Commit 5737925

Browse files
committed
Add a sqlite3 antlr2 "create table" grammar + generated parser files
There is also a "create table" ast walker which fills info for the new sqlitetype objects. A dependency to the antlr2 runtime was added. The grammar most probably still contain bugs. Why all this? First writing grammars is fun and this is the only way we can get all information for proper table editing + some time in the future when the grammar is finished we can provide real auto completion.
1 parent 56d8103 commit 5737925

File tree

12 files changed

+5247
-35
lines changed

12 files changed

+5247
-35
lines changed

sqlitedbbrowser.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
TEMPLATE = subdirs
22

3-
SUBDIRS = src
3+
SUBDIRS = libs/antlr-2.7.7/antlr.pro
4+
SUBDIRS += src
45

56

67

src/grammar/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To generate c++ code from the grammar(sqlit3.g) you need
2+
antlr 2.7.7. Download it from www.antlr2.org.
3+
4+
Either put the antlr.jar into your system classpath or
5+
start it like this:
6+
java -cp .:/pathto/antlr.jar antlr.Tool sqlite3.g

0 commit comments

Comments
 (0)