Commit Graph

9 Commits

Author SHA1 Message Date
6546207fe2 sql.l: strip string start/end delimiters from value 2019-01-05 11:18:04 -05:00
3903ab0cbb sql.l: Handle square bracket column names
Credit: @mewalig
Fixes #2
2018-02-17 00:13:29 -05:00
dd40182dce Fix missing yyerror arg.
Fixes #1
2018-02-16 23:53:30 -05:00
ea2ca5f51b Move psql_state into sql-parser.h. 2016-07-28 18:14:36 -04:00
0d452ccef6 Fix build with bison 3.0 + reentrant bison + reentrant flex 2016-07-27 23:34:05 -04:00
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
63371d1513 const-ify yyerror format arg
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-09 02:30:52 -05:00
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
62870f4575 Check in SQL lexer and parser from John Levine's _Flex & Bison_ O'Reilly book
The only changes were those needed to make the newly renamed parser build,
makefile and header file name changes.

Book URL, which describes the parser's construction (chapter 4):
	http://oreilly.com/catalog/9780596155988

Software URL: ftp://ftp.iecc.com/pub/file/flexbison.zip

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-08 17:34:31 -05:00