1
Fork 0
Commit graph

172 commits

Author SHA1 Message Date
Jake Wheat
e03090a6a1 add support for rowctor without row, e.g. (1,2) 2013-12-17 16:20:05 +02:00
Jake Wheat
89a4dd0e3e add a few more operators: % & ^ | ~ 2013-12-17 16:15:19 +02:00
Jake Wheat
b2728ec9bf add support for ansi standard offset and fetch syntax 2013-12-17 16:00:17 +02:00
Jake Wheat
8093498f2d generalize . to a binary operator 2013-12-17 15:21:43 +02:00
Jake Wheat
8adc169b38 add support for '' in string literals 2013-12-17 15:09:28 +02:00
Jake Wheat
72b67166d9 add support for 'table t' syntax 2013-12-17 13:58:44 +02:00
Jake Wheat
4308acb982 add support for with recursive and column aliases in cte 2013-12-17 13:41:06 +02:00
Jake Wheat
c52334943f add support for values 2013-12-17 13:27:16 +02:00
Jake Wheat
4330b3d7e0 add support for quoted identifiers 2013-12-17 13:21:36 +02:00
Jake Wheat
045f2be825 support simple interval literal interval '3 days' and rename CastOp to TypedLit 2013-12-17 12:51:14 +02:00
Jake Wheat
939189a04f partial support for lateral 2013-12-17 12:45:32 +02:00
Jake Wheat
d49b3ddb99 add support for functions in tablerefs 2013-12-17 12:33:33 +02:00
Jake Wheat
adfeac8d16 parse a join b without inner 2013-12-17 12:27:00 +02:00
Jake Wheat
9461a11c97 get star parsing working everywhere 2013-12-17 12:24:37 +02:00
Jake Wheat
abc30b82e6 work on tests
enable the postgresql tests, comment out the failing ones and add
  notes on how to get them working
move the tpchQueries data to the Language..Tpch module
fix the cabal file for the new tests
2013-12-17 12:16:03 +02:00
Jake Wheat
16bf35a6c4 split misc tests 2013-12-17 11:48:40 +02:00
Jake Wheat
6ff8c9ddc5 rearrange the test code and add some notes on postgres 2013-12-17 11:40:31 +02:00
Jake Wheat
86ba354e26 fix case insensitivity for keyword parsing, add some notes 2013-12-16 13:33:05 +02:00
Jake Wheat
5eb48efb36 reformat 2013-12-16 10:03:46 +02:00
Jake Wheat
9bf4012fc4 fix homepage link in cabal file 2013-12-14 20:58:47 +02:00
Jake Wheat
0ef56bf088 add description field to cabal 2013-12-14 20:51:40 +02:00
Jake Wheat
4709103196 missing file in tests in cabal 2013-12-14 20:45:45 +02:00
Jake Wheat
44b82a797f add tests to cabal 2013-12-14 20:42:01 +02:00
Jake Wheat
3f0ff9aec0 small tidyups 2013-12-14 20:20:41 +02:00
Jake Wheat
3fa7086a48 few small typos, etc. 2013-12-14 17:09:45 +02:00
Jake Wheat
b6633bf73c reformat 2013-12-14 16:58:35 +02:00
Jake Wheat
97189fb802 tweak some of the pretty printing 2013-12-14 16:35:36 +02:00
Jake Wheat
730b8a7f0a get fixity adjustment working, fix bug in between parsing 2013-12-14 16:34:57 +02:00
Jake Wheat
9092721ebb get proof of concept fixity handling working 2013-12-14 15:05:52 +02:00
Jake Wheat
4acc59000a improve the pretty printing formatting 2013-12-14 14:24:49 +02:00
Jake Wheat
b001276337 work on haddock and a few renames 2013-12-14 14:10:46 +02:00
Jake Wheat
c28db4d470 add haddock, reorder the fields in binop and jointref to be more natural 2013-12-14 13:33:15 +02:00
Jake Wheat
65610af74e refactor app parser, from parser 2013-12-14 13:05:02 +02:00
Jake Wheat
3f08adb4c5 work on the semicolon handling 2013-12-14 11:59:29 +02:00
Jake Wheat
cd7a15c193 tidy up the number parser 2013-12-14 11:47:13 +02:00
Jake Wheat
8ef799740c refactor the combo query expression parsing and the optional parts of a select query expr 2013-12-14 11:41:58 +02:00
Jake Wheat
fabc106fd8 refactor the main scalar expression parser into nicer components 2013-12-14 11:28:45 +02:00
Jake Wheat
ac406c077c small refactoring in the parser
factor out the integer parser for interval literals to separate lexer
refactor the app parser to include windows here instead of later on
add notes on the fixity handling
formatting in the cabal file
2013-12-14 11:23:58 +02:00
Jake Wheat
0de32d3429 tidying up 2013-12-14 10:55:44 +02:00
Jake Wheat
0da39d4498 small reformatting 2013-12-14 01:14:23 +02:00
Jake Wheat
e80b3606b1 update todo 2013-12-14 01:01:07 +02:00
Jake Wheat
931272d1db add with expressions, all tpch appear to parse correct, some of the later ones pretty print badly though 2013-12-14 00:58:12 +02:00
Jake Wheat
15c83555ff add support for full table aliases 2013-12-14 00:37:34 +02:00
Jake Wheat
d005dc1706 work on parsing tpch
add parse function for parsing multiple query expressions separated by
  semicolon
add parser for substring operator
tweak the layout for pretty printing binary operators
add sql file with tpch queries in it
add simple exe to parse and pretty print multiple query expressions
2013-12-14 00:34:05 +02:00
Jake Wheat
f08f4eb13b few small fixes
untested fix for case insensitive keywords
add partial support for interval literals
fix bug in prefix operator cast parsing
2013-12-14 00:07:45 +02:00
Jake Wheat
9c4719bda3 add support for union all and union corresponding and for intersect and except 2013-12-13 23:49:22 +02:00
Jake Wheat
1199342477 add support for union,intersect,except 2013-12-13 23:41:12 +02:00
Jake Wheat
64eb5a5c9d add window functions (without frames 2013-12-13 23:31:36 +02:00
Jake Wheat
81e7aa818b add support for extended aggregate syntax 2013-12-13 23:18:30 +02:00
Jake Wheat
5e56a4b560 implement extract 2013-12-13 22:38:43 +02:00