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
Jake Wheat
666d1f877f
add basic transction control
2015-08-04 22:53:08 +03:00
Jake Wheat
a9d51d1ebb
add create,alter,drop sequence
2015-08-04 22:35:51 +03:00
Jake Wheat
9aab04b189
add create, alter, drop domain
2015-08-04 22:08:32 +03:00
Jake Wheat
c2810cddd2
add support for create and drop view
2015-08-02 23:52:01 +03:00
Jake Wheat
8291fbaa44
add drop table support
2015-08-02 23:27:09 +03:00
Jake Wheat
f0baa3c37b
add alter table variations:
...
set default
drop default
set not null
drop not null
set data type
drop column
add constraint
drop constraint
fix bug where generated didn't have to be followed with 'always' or
'by default' for identities in create table
2015-08-02 23:22:06 +03:00
Jake Wheat
f6477ac214
add alter table add column support
2015-08-02 20:56:39 +03:00
Jake Wheat
fa1df4c7a2
add table constraint definitions to create table
2015-08-02 20:36:05 +03:00
Jake Wheat
e6e8264b3d
add support for column constraints in create table
2015-08-02 19:27:39 +03:00
Jake Wheat
4f80ec96d4
add generation clause support to create table
2015-08-02 18:14:45 +03:00
Jake Wheat
e495e240c0
add default and identity to create table
2015-08-02 18:04:40 +03:00
Jake Wheat
056cd1afda
tweak lexer tests
2015-08-02 15:58:09 +03:00
Jake Wheat
3b5deec2e5
fix positioning in lexer? and fix line comment token missing trailing \n
2015-08-02 15:29:35 +03:00
Jake Wheat
c479e5e8f8
fix copyright
2015-08-01 23:21:46 +03:00
Jake Wheat
6802aaef5a
add simple create table support
2015-08-01 23:16:26 +03:00
Jake Wheat
2938f642d3
fix to work on ghc 7.8.4, 7.6.3, plus small tweaks
2015-08-01 21:13:37 +03:00
Jake Wheat
384bf5088f
update changelog
2015-08-01 20:29:42 +03: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
0f1f000ee5
add fixity experiment
2015-08-01 15:58:45 +03:00
Jake Wheat
bbb793c160
small fixes
...
fix positions?
small fixes to haddock
add notes to top of lexer module
simplify line comment lexer
remove some trys from lexer
fix the block comment parser to return all the comment text when there
are embedded / * in the comment
refactor the symbol, keyword and identifier blacklist checking into
the low level token parsers instead of a separate step using guard
2015-08-01 13:22:07 +03:00
Jake Wheat
900d19f4c1
use ppShow in tool
2015-08-01 12:23:10 +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
c156c5c34e
update changelog
2015-03-14 17:50:17 +02:00