Jake Wheat
a3178ad249
refactor the symbol lexer a little
2016-02-22 23:20:11 +02:00
Jake Wheat
3f7e0123a2
a few documentation and website tweaks
2016-02-22 23:16:36 +02:00
Jake Wheat
10a38657b5
update TODO
2016-02-22 23:16:15 +02:00
Jake Wheat
bef44a7431
update changelog
2016-02-22 23:15:57 +02:00
Jake Wheat
92c537fce2
move #iden to sql server dialect
2016-02-21 23:50:23 +02:00
Jake Wheat
83b16edb1f
add support for odbc outer join syntax
2016-02-21 23:48:55 +02:00
Jake Wheat
c8d745fd28
add support for odbc scalar exprs
2016-02-21 23:43:19 +02:00
Jake Wheat
d8b351472f
add positional arg to the syntax and parser
2016-02-21 23:36:47 +02:00
Jake Wheat
64d3b742b4
make aggregate function names non keywords
2016-02-18 20:38:59 +02:00
Jake Wheat
c0b4358d89
parse functions whose name is a keyword
2016-02-18 20:37:12 +02:00
Jake Wheat
90e66f4888
reorder identifier-like parser code in lex
2016-02-18 20:32:32 +02:00
Jake Wheat
ba55859dd7
special case in the lexer to support postgres 1..2
2016-02-18 20:29:45 +02:00
Jake Wheat
31914dfd83
add some notes
2016-02-15 20:36:01 +02:00
Jake Wheat
ee4098e189
lexer tweaks
...
combine hostparam with prefixed variable
refactor some of the lexing code slightly
fix error in tests where it was using the ansi dialect instead of
postgres for testing :::, etc.
2016-02-15 20:35:38 +02:00
Jake Wheat
31f9912faa
lexer tweaks
...
refactor dollarstring parser
fix to not allow three or more adjacent colons in postgres dialect
2016-02-15 20:34:58 +02:00
Jake Wheat
b4c2276a1f
tidy up the tokensWillPrintAndLex function some more
2016-02-15 20:34:28 +02:00
Jake Wheat
36109ce584
refactor the tokenswillprintandlex utility function
2016-02-15 20:34:04 +02:00
Jake Wheat
a4d91b3e44
add support for odbc symbols: {} in lexer
2016-02-15 20:33:37 +02:00
Jake Wheat
9adce162e5
add support for [] quoted identifiers and for #var, @var
2016-02-15 20:33:11 +02:00
Jake Wheat
b22cde4100
add support for @var and #var in sqlserver and oracle dialects respectively
2016-02-15 20:32:26 +02:00
Jake Wheat
9fd2970f26
work on lexing: error cases
...
fix so following a number with either . or e or E without whitespace
will cause a lexing error
remove */ from symbols in postgres (although postgres strictly
speaking allows this I think, it is not a good idea)
reject */ anywhere with an error
reject ||| (or more pipes) in ansi, etc. dialects instead of trying to
parse it as something like '||', '|'
2016-02-15 20:31:06 +02:00
Jake Wheat
4bca2fa2ec
work on lexing
...
add utility function to tell if two tokens will pretty print then lex
back to the same two tokens or not
add notes for some final missing lexing bits that are in hssqlppp
add token combo tests for postgres
add start of sql server, oracle and odbc lexing tests
2016-02-15 20:20:24 +02:00
Jake Wheat
47198c78c1
add tests for + - followed by comment edge cases
2016-02-13 20:38:49 +02:00
Jake Wheat
fc2119be02
refactor postgresql operator parsing
2016-02-13 20:34:50 +02:00
Jake Wheat
c24008444c
work on postgres operator parsing
2016-02-13 20:28:12 +02:00
Jake Wheat
5084c0c3ab
add lexing for \' only in e' strings and dollar strings in pg dialect
2016-02-13 17:07:27 +02:00
Jake Wheat
b41803427d
work on postgresql lexing
...
add positional arg
add e' quoted strings
add \' escaping in strings (not finished)
add ::, :=, : symbols
2016-02-13 16:31:20 +02:00
Jake Wheat
a59f19aae9
don't unescape quotes in string literals and identifiers
2016-02-13 15:54:40 +02:00
Jake Wheat
a892d6d2ee
add .stack-work to gitignore
2016-02-13 15:40:26 +02:00
Jake Wheat
f17053c7d9
add notes to lex.lhs
2016-02-13 11:40:49 +02:00
Jake Wheat
91e7012c47
add stack.yaml
2016-02-13 11:40:33 +02:00
Jake Wheat
aa5c2e89c7
refactor the identifier syntax
2016-02-12 14:13:47 +02:00
Jake Wheat
52f035b718
new syntax for names and string literals
2016-02-12 13:09:58 +02:00
Jake Wheat
1b4eefc431
refactor dialect into a non enum and separate to own file
2016-02-12 12:51:06 +02:00
Jake Wheat
2b73907119
rename modules lexer->lex, parser->parse
2016-02-12 12:22:19 +02:00
Jake Wheat
e08452f0db
add happy to the makefile
2016-02-12 11:59:55 +02:00
Jake Wheat
5b786bd11d
small tweaks
2016-02-12 11:57:09 +02:00
Jake Wheat
c102528d5f
add create and drop assertion
2015-08-16 20:03:02 +03:00
Jake Wheat
3c0788af6e
add support for create/drop role, grant, revoke
2015-08-15 21:01:48 +03:00
Jake Wheat
91875b7e7e
rearrange tests slightly and hide/show tests in the website a bit better
2015-08-15 19:04:29 +03:00
Jake Wheat
63a23cabf4
small infrastructure fixes
...
updates to website text
updates to website generation
add a little makefile
2015-08-15 16:17:12 +03:00
Jake Wheat
455726f6c2
rearrange index
2015-08-14 12:25:33 +03:00
Jake Wheat
c35ea6e08b
small fixes and update changelog
2015-08-09 20:13:11 +03:00
Jake Wheat
322b6f200d
finish on the website updates for now
2015-08-08 22:30:17 +03:00
Jake Wheat
b7d9d92ae7
update supported_sql page to asciidoc
2015-08-08 21:24:18 +03:00
Jake Wheat
60963de5e0
change website index to be asciidoc
2015-08-08 21:19:18 +03:00
Jake Wheat
61e7a89416
work on website
2015-08-08 20:49:23 +03:00
Jake Wheat
357c5737b6
fix link to website
2015-08-08 20:07:44 +03:00
Jake Wheat
2c817f4088
fix silly bug with is distinct from parsing
2015-08-05 22:57:36 +03:00
Jake Wheat
136257bfd5
fixes to operator precedence, introduced some bugs to fix also
2015-08-05 22:38:44 +03:00