add support for odbc symbols: {} in lexer
This commit is contained in:
parent
9adce162e5
commit
a4d91b3e44
5 changed files with 31 additions and 16 deletions
tools/Language/SQL/SimpleSQL
|
@ -303,10 +303,11 @@ the + or -.
|
|||
|
||||
> odbcLexerTests :: TestItem
|
||||
> odbcLexerTests = Group "odbcLexTests" $
|
||||
> [ LexTest sqlserver {- {odbc = True} -} s t | (s,t) <-
|
||||
> [--("{}", [Symbol "{", Symbol "}"])
|
||||
> ]
|
||||
> ]
|
||||
> [ LexTest sqlserver {allowOdbc = True} s t | (s,t) <-
|
||||
> [("{}", [Symbol "{", Symbol "}"])
|
||||
> ]]
|
||||
> ++ [LexFails sqlserver "{"
|
||||
> ,LexFails sqlserver "}"]
|
||||
|
||||
> combos :: [a] -> Int -> [[a]]
|
||||
> combos _ 0 = [[]]
|
||||
|
|
|
@ -4,7 +4,8 @@ Tests.lhs module for the 'interpreter'.
|
|||
|
||||
> module Language.SQL.SimpleSQL.TestTypes
|
||||
> (TestItem(..)
|
||||
> ,ansi2011,mysql,postgres,oracle,sqlserver) where
|
||||
> ,ansi2011,mysql,postgres,oracle,sqlserver
|
||||
> ,allowOdbc) where
|
||||
|
||||
> import Language.SQL.SimpleSQL.Syntax
|
||||
> import Language.SQL.SimpleSQL.Lex (Token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue