Add operator reserved names for the lexer
This commit is contained in:
parent
2a931e52e1
commit
03d8ccc5bb
|
@ -25,7 +25,17 @@ lexer = P.makeTokenParser P.LanguageDef
|
|||
, P.identLetter = alphaNum <|> char '_'
|
||||
, P.opStart = oneOf ":!#$%&*+./<=>?@\\^|-~"
|
||||
, P.opLetter = oneOf "@"
|
||||
, P.reservedNames = []
|
||||
, P.reservedNames =
|
||||
[ "let", "in"
|
||||
, "if", "then", "else"
|
||||
, "true", "false"
|
||||
, "null"
|
||||
, "assert"
|
||||
, "with"
|
||||
, "rec"
|
||||
, "inherit"
|
||||
, "or"
|
||||
]
|
||||
, P.reservedOpNames = []
|
||||
, P.caseSensitive = True
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue