1
Fork 0

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
This commit is contained in:
Jake Wheat 2014-04-16 18:58:17 +03:00
parent 8b1fa81de7
commit 89015144f9
4 changed files with 2983 additions and 158 deletions
Language/SQL/SimpleSQL

View file

@ -57,7 +57,7 @@
> | IntervalLit
> {ilLiteral :: String -- ^ literal text
> ,ilUnits :: String -- ^ units
> ,ilPrecision :: Maybe Int -- ^ precision
> ,ilPrecision :: Maybe Integer -- ^ precision
> }
> -- | identifier without dots
> | Iden Name
@ -130,8 +130,8 @@
> -- | Represents a type name, used in casts.
> data TypeName = TypeName String
> | PrecTypeName String Int
> | PrecScaleTypeName String Int Int
> | PrecTypeName String Integer
> | PrecScaleTypeName String Integer Integer
> deriving (Eq,Show,Read,Data,Typeable)