1
Fork 0
Commit graph

26 commits

Author SHA1 Message Date
Ignat Insarov 0aa28ff96a Fix handling of empty statements. 2020-12-20 20:26:34 +05:00
Jake Wheat 1a1913e7b8 example of a custom dialect which allows date('xxx') syntax by removing 'date' from the list of keywords 2019-08-31 13:50:12 +01:00
Jake Wheat ff3dcb814c add support for oracle type size units 'char' and 'byte', example: varchar2(55 byte) 2016-08-10 11:27:30 +03:00
Jake Wheat a2645ace3f rename ValueExpr to ScalarExpr 2016-02-22 23:24:25 +02:00
Jake Wheat c8d745fd28 add support for odbc scalar exprs 2016-02-21 23:43:19 +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 2b73907119 rename modules lexer->lex, parser->parse 2016-02-12 12:22:19 +02:00
Jake Wheat dfa84072dc start adding basic dml
parser and pretty printer for statements
add query statement
add support for
  insert
  update
  delete
  truncate
bonus ddl:
  limited create schema
  drop schema

add grammar notes to the new test files
2015-08-01 20:26:00 +03:00
Jake Wheat 6fc8869f73 preparation for non-queries
some docs in the lexer
bump the version to 0.5.0
add placeholder files for the planned initial non query support
2015-08-01 18:08:54 +03:00
Jake Wheat 913fce068b small fixes
work on the haddock
remove the old attoparsec position stuff from the lexer
change the lexer to accept position info in the same way as the parser
replace sqlindent with new test exe which can parse, lex and indent
2015-08-01 12:13:53 +03:00
Jake Wheat 2df76e3095 add separate lexer 2015-08-01 00:04:18 +03:00
Jake Wheat 1364c58534 use tasty for tests 2015-07-31 12:45:51 +03:00
Jake Wheat c1c514af35 example how to switch parsing and pretty printing depending on dialect 2014-06-28 15:41:11 +03:00
Jake Wheat 7d63c8f8e5 start on dialect prototype code 2014-06-27 12:19:15 +03:00
Jake Wheat 8cabf5abcf remove old 2003 tests
add tests for sort specification
2014-04-20 23:29:22 +03:00
Jake Wheat ccd0e6708f start new file for the sql 2011 tests based on the grammar from the draft standard 2014-04-20 16:13:14 +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 8b1fa81de7 fix bug in parsing default as all instead of distinct for set operations 2014-04-15 13:47:34 +03: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 b703e04af3 add syntax for new grouping expressions 2013-12-17 19:17:03 +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 44b82a797f add tests to cabal 2013-12-14 20:42:01 +02:00
Renamed from Tests.lhs (Browse further)