Skip to content
Modern SQL parser using Bison (Yacc) and Flex
Branch: master
Clone or download
Latest commit 6b11c3d Jan 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build-aux Switch to autoconf/automake/libtool. Jul 29, 2016
.gitignore Add simple test suite. Jul 29, 2016
.travis.yml travis: install jansson pkg Jan 5, 2019
LICENSE Add LICENSE, README. Jul 28, 2016
Makefile.am
README README: add build docs Jul 29, 2016
autogen.sh Switch to autoconf/automake/libtool. Jul 29, 2016
configure.ac Begin conversion of stdout data to JSON stream. Jan 5, 2019
exec.c Explicitly extract data type, rather than relying on bitwise flags. Jan 5, 2019
fail1.sql Add simple test suite. Jul 29, 2016
fail3.sql Fix missing yyerror arg. Feb 17, 2018
fail4.sql Fix missing yyerror arg. Feb 17, 2018
fail5.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
lib.c Continue work separating parser into clean library module. Jan 5, 2019
libsqlpars-uninstalled.pc.in Switch to autoconf/automake/libtool. Jul 29, 2016
libsqlpars.pc.in Switch to autoconf/automake/libtool. Jul 29, 2016
main.c Continue work separating parser into clean library module. Jan 5, 2019
ok1.sql Add simple test suite. Jul 29, 2016
ok10.sql Add more test data Jan 5, 2019
ok2.sql Fix missing yyerror arg. Feb 17, 2018
ok3.sql sql.l: Handle square bracket column names Feb 17, 2018
ok4.sql Add more test data Jan 5, 2019
ok5.sql Continue conversion of printf() output to JSON. Jan 5, 2019
ok6.sql Continue conversion of printf() output to JSON. Jan 5, 2019
ok7.sql
ok8.sql Fix minor bugs: some int-to-boolean JSON conversions were missed. Jan 5, 2019
ok9.sql
pscan.js
scansql
sql-parser.h
sql.l sql.l: strip string start/end delimiters from value Jan 5, 2019
sql.y sql.y: remove no-longer-needed type specifiers inside flags Jan 5, 2019
test-fail.sh Add simple test suite. Jul 29, 2016
test-ok.sh Update tests, and exclude tst*.sql for now. Jan 5, 2019
tst-create-db.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
tst-create-table.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
tst-delete.sql add basic DELETE Jan 6, 2019
tst-drop-db.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
tst-drop-table.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
tst-insert.sql pscan: add DROP TABLE and INSERT Jan 5, 2019
xfail2.sql
yyl.h

README

An SQL parser, generated from Bison (Yacc) and Flex (Lex).

Original version - most of the work - comes from John Levine's
Flex & Bison book published by O'Reilley.

Example usage:

	$ echo "SELECT a.name,b.address FROM people ORDER BY name;" | ./sql

Standard GNU autotools building instructions:

	$ ./autogen.sh
	$ ./configure
	$ make && make check
	$ sudo make install

You can’t perform that action at this time.