59 Commits

Author SHA1 Message Date
anon
1c687aba0c directory ordering 2024-02-12 21:07:48 +01:00
anon
4a540661e2 set yyerrno on recoverable error 2024-02-12 19:10:08 +01:00
anon
84b98f93d3 sql.y: fix compilation error due to multiple definitions 2024-02-11 20:47:40 +01:00
Jeff Garzik
937ca61069 README: add deps 2019-10-08 08:25:21 -04:00
Jeff Garzik
cf2bb94db6 add basic DELETE 2019-01-05 22:12:29 -05:00
Jeff Garzik
544073486f sql.y: remove no-longer-needed type specifiers inside flags 2019-01-05 13:54:25 -05:00
Jeff Garzik
168117198d Explicitly extract data type, rather than relying on bitwise flags. 2019-01-05 13:26:07 -05:00
Jeff Garzik
3cb24ce3b3 Continue work separating parser into clean library module. 2019-01-05 12:19:50 -05:00
Jeff Garzik
e0d92a4749 sql.y: remove memory leak on exit, for valgrind 2019-01-05 11:28:38 -05:00
Jeff Garzik
b195df18c7 Update tests, and exclude tst*.sql for now. 2019-01-05 11:21:09 -05:00
Jeff Garzik
a5e6e0715c Improve INSERT column parsing and diagnostics. 2019-01-05 11:18:25 -05:00
Jeff Garzik
6546207fe2 sql.l: strip string start/end delimiters from value 2019-01-05 11:18:04 -05:00
Jeff Garzik
faa138ed65 pscan: no need to store field-count fields 2019-01-05 10:29:41 -05:00
Jeff Garzik
663c02e791 scansql: new tool to create stream, then parse it 2019-01-05 10:23:50 -05:00
Jeff Garzik
4e30fca128 pscan: add DROP TABLE and INSERT 2019-01-05 10:08:33 -05:00
Jeff Garzik
20164e984d pscan: add DROP DATABASE 2019-01-05 09:38:54 -05:00
Jeff Garzik
de88152e89 Add more test data 2019-01-05 03:20:30 -05:00
Jeff Garzik
3b8af29be2 pscan: Support CREATE DATABASE. Begin SELECT support. 2019-01-05 02:48:45 -05:00
Jeff Garzik
b55855e24f Add pscan tool, to convert JSON parse stream into AST-like object 2019-01-05 02:35:54 -05:00
Jeff Garzik
75ee778e7e Fix minor bugs: some int-to-boolean JSON conversions were missed. 2019-01-05 01:33:36 -05:00
Jeff Garzik
7e443f45fe Improve comparison operator output. 2019-01-05 01:17:12 -05:00
Jeff Garzik
3afcaf06f6 Finish conversion of program output to JSON stream. 2019-01-05 00:48:12 -05:00
Jeff Garzik
2489a77413 Continue conversion of printf() output to JSON. 2019-01-05 00:26:01 -05:00
Jeff Garzik
d6090d0829 travis: install jansson pkg 2019-01-04 23:19:32 -05:00
Jeff Garzik
0a18c5ef1a Begin conversion of stdout data to JSON stream.
Tested with tst-create*.sql new tests.
2019-01-04 23:15:46 -05:00
Jeff Garzik
bfe394f29e Version 0.0.2 2018-02-17 00:16:07 -05:00
Jeff Garzik
3903ab0cbb sql.l: Handle square bracket column names
Credit: @mewalig
Fixes #2
2018-02-17 00:13:29 -05:00
Jeff Garzik
dd40182dce Fix missing yyerror arg.
Fixes #1
2018-02-16 23:53:30 -05:00
Jeff Garzik
a6595bbf20 travis: disable osx 2018-02-16 23:26:05 -05:00
Jeff Garzik
89692992e1 Travis OSX: don't install libtool; it's already present 2016-07-30 18:35:17 -04:00
Jeff Garzik
0c1b8d89b4 Travis: Enable OSX build 2016-07-30 18:27:10 -04:00
Jeff Garzik
252ba66e58 Travis: Avoid parallel make (temp workaround) 2016-07-29 16:51:44 -04:00
Jeff Garzik
e1a7f3ee7a sql.y: remove 'full' from api.pure, for compat w/ older bison 2016-07-29 16:46:49 -04:00
Jeff Garzik
40ad74b2ba sql.y: separate parse-param params onto separate lines, for compat
with older bisons.
2016-07-29 16:43:21 -04:00
Jeff Garzik
1c44fab959 Travis clean-up 2016-07-29 16:32:16 -04:00
Jeff Garzik
51d7f01c3d Add Travis-CI config 2016-07-29 16:26:07 -04:00
Jeff Garzik
379dc16c5e Add simple test suite. 2016-07-29 16:24:02 -04:00
Jeff Garzik
4e996af1b1 README: add build docs 2016-07-29 16:16:07 -04:00
Jeff Garzik
49aa79705f sql.y: program returns success (0) or fail (1)
depending on parse outcome.
2016-07-29 09:24:42 -04:00
Jeff Garzik
b3db299602 .gitignore: ignore 'Makefile' 2016-07-29 06:28:30 -04:00
Jeff Garzik
e1e9c6558c Switch to autoconf/automake/libtool.
libtool is included as future preparation for exporting a library.
2016-07-29 06:27:45 -04:00
Jeff Garzik
32043a11c3 Pass parser state ptr to each parser executor callback. 2016-07-28 18:34:21 -04:00
Jeff Garzik
ea2ca5f51b Move psql_state into sql-parser.h. 2016-07-28 18:14:36 -04:00
Jeff Garzik
c9fe196102 Add LICENSE, README. 2016-07-28 08:43:36 -04:00
Jeff Garzik
0d452ccef6 Fix build with bison 3.0 + reentrant bison + reentrant flex 2016-07-27 23:34:05 -04:00
Jeff Garzik
1cb0591141 sql.y: Add missing semi-colons to statements 2016-07-27 22:20:03 -04:00
Jeff Garzik
dfe7c6a758 Update lexer/parser header: link to book and software for ease and credit.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-14 04:32:31 -05:00
Jeff Garzik
63371d1513 const-ify yyerror format arg
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-09 02:30:52 -05:00
Jeff Garzik
35a5e94310 Convert lexer and parser to be reentrant ("pure lexer" and "pure parser").
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-09 02:06:10 -05:00
Jeff Garzik
d5e59cd6db emit() sweep: finish conversion, converting 'strange func call' cases
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-08 23:52:47 -05:00