refactor dialect into a non enum and separate to own file
This commit is contained in:
parent
2b73907119
commit
1b4eefc431
22 changed files with 304 additions and 252 deletions
tools/Language/SQL/SimpleSQL
|
@ -57,9 +57,9 @@ Test for the lexer
|
|||
|
||||
> lexerTests :: TestItem
|
||||
> lexerTests = Group "lexerTests" $
|
||||
> [Group "lexer token tests" $ [LexerTest SQL2011 s t | (s,t) <- lexerTable]
|
||||
> [Group "lexer token tests" $ [LexerTest ansi2011 s t | (s,t) <- lexerTable]
|
||||
> ,Group "generated combination lexer tests" $
|
||||
> [ LexerTest SQL2011 (s ++ s1) (t ++ t1)
|
||||
> [ LexerTest ansi2011 (s ++ s1) (t ++ t1)
|
||||
> | (s,t) <- lexerTable
|
||||
> , (s1,t1) <- lexerTable
|
||||
|
||||
|
@ -75,7 +75,7 @@ number number (todo: double check more carefully)
|
|||
|
||||
> ]
|
||||
> ,Group "adhoc lexer tests" $
|
||||
> map (uncurry $ LexerTest SQL2011)
|
||||
> map (uncurry $ LexerTest ansi2011)
|
||||
> [("", [])
|
||||
> ,("-- line com\nstuff", [LineComment "-- line com\n",Identifier "stuff"])
|
||||
> ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue