1
Fork 0
Commit graph

51 commits

Author SHA1 Message Date
Jake Wheat c814cc9437 tweak to error message for reserved keyword as identifier
add in some group by and order by tests
2014-04-18 10:47:39 +03:00
Jake Wheat 2e44b7b968 update changelog 2014-04-18 00:36:50 +03:00
Jake Wheat 488310ff6a add some big improvements to parse error messages
change the parser to not attempt to parse the elements following
'from' unless there is a actual 'from'
improve the symbol parser to try to deal with issues when symbols are
  next to eachother with no intervening whitespaces
improve number literal parsing to fail if there are trailing letters
  or digits which aren't part of the number and aren't separated with
  whitespace
add some code to start analysing the quality of parse error messages
2014-04-17 18:32:41 +03:00
Jake Wheat c48b057457 better sql 2003 todo list 2014-04-16 22:37:18 +03:00
Jake Wheat e40ea1ad52 update changelog 2014-04-16 20:38:19 +03:00
Jake Wheat dffd7b0d7a refactor more of the parser to update with ideas from the tutorial
parser
remove a huge number of 'try' calls in the parser
rename some of the parser functions which used prefix s to nicer names
2014-04-16 20:22:42 +03:00
Jake Wheat 89015144f9 change the ints in the syntax to be integers
partially add buildExprParser hack to deal with some nested prefix and
  postfix unary operators
add new file which starts going through the sql2003 grammar to try to
  create lots of examples for comprehensive testing of sql2003
  support.
replace the lexers with lexers from the tutorial project
2014-04-16 18:58:17 +03:00
Jake Wheat 8b1fa81de7 fix bug in parsing default as all instead of distinct for set operations 2014-04-15 13:47:34 +03:00
Jake Wheat b385763341 merge 2014-01-22 22:07:58 +02:00
Jake Wheat 9e75fa9365 hlint 2013-12-31 11:44:10 +02:00
Jake Wheat 40c64c7631 rename qeFetch to qeFetchFirst 2013-12-19 17:50:25 +02:00
Jake Wheat a231c7e9f8 reformat some of the changelog 2013-12-19 13:38:52 +02:00
Jake Wheat 692f8f84ad fixes to haddock and update changelog 2013-12-19 12:15:05 +02:00
Jake Wheat 3b2730fd99 rename ScalarExpr -> ValueExpr which is slightly more standard, add notes on new fixity implementation 2013-12-19 11:46:51 +02:00
Jake Wheat 8fa1ac8a74 update changelog and TODO 2013-12-19 10:55:01 +02:00
Jake Wheat 27a1723813 update TODO 2013-12-19 10:27:44 +02:00
Jake Wheat b631497a04 renames OrderField->SortSpec, InThing->InPredValue 2013-12-18 16:27:06 +02:00
Jake Wheat b89f2a011c fixes for substring, change the abstract syntax for extract and
substring, and add the addition operators position, convert,
  translate, overlay and trim
2013-12-18 15:51:55 +02:00
Jake Wheat 1397047654 update TODO, changelog and cabal package version 2013-12-18 11:37:35 +02:00
Jake Wheat 9fb18f9b7b todo 2013-12-17 23:10:14 +02:00
Jake Wheat 02e8452f8c prepare for the github project name rename to be the same as the haskage package 2013-12-17 22:54:20 +02:00
Jake Wheat 6ab941312b updated todo 2013-12-17 22:15:42 +02:00
Jake Wheat 5cef82cbb3 todo update 2013-12-17 21:34:01 +02:00
Jake Wheat 84e3da3a21 add changelog 2013-12-17 21:12:16 +02:00
Jake Wheat e61672ebf8 hlint 2013-12-17 20:27:11 +02:00
Jake Wheat 9b1bbbf307 add back test for postgres limit syntax, convert tpch queries to ansi fetch first n rows only syntax 2013-12-17 20:04:49 +02:00
Jake Wheat b703e04af3 add syntax for new grouping expressions 2013-12-17 19:17:03 +02:00
Jake Wheat 7d094182b7 add support for multiple case when expressions 2013-12-17 18:42:00 +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 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 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 c28db4d470 add haddock, reorder the fields in binop and jointref to be more natural 2013-12-14 13:33:15 +02:00
Jake Wheat 0de32d3429 tidying up 2013-12-14 10:55:44 +02:00
Jake Wheat e80b3606b1 update todo 2013-12-14 01:01:07 +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 a001d120c1 tidyups 2013-12-13 22:25:22 +02:00
Jake Wheat 182526d1fc add parsing for unary + - 2013-12-13 20:01:57 +02:00
Jake Wheat aa26603a0c start work on cast expressions, add lots more test targets 2013-12-13 18:50:41 +02:00
Jake Wheat a81f62b940 add support for limit and offset 2013-12-13 17:27:02 +02:00
Jake Wheat 1a8551825d add directions to order by 2013-12-13 17:08:10 +02:00
Jake Wheat e3be820dfb pretty printer, minor clean ups
clean up some warnings
update the cabal file
add pretty printer
add pretty printing tests
2013-12-13 15:05:32 +02:00
Jake Wheat 52b9f3f4f4 add support for count(*) 2013-12-13 14:21:25 +02:00