Updated the list of operators and keywords
This commit is contained in:
parent
52e04d28cf
commit
4592a89ebf
1 changed files with 31 additions and 2 deletions
|
@ -55,8 +55,37 @@ languageDef = LanguageDef {
|
||||||
, identLetter = alphaNum <|> char '_'
|
, identLetter = alphaNum <|> char '_'
|
||||||
, opStart = oneOf "+-*/%"
|
, opStart = oneOf "+-*/%"
|
||||||
, opLetter = oneOf "+-*/%"
|
, opLetter = oneOf "+-*/%"
|
||||||
, reservedNames = [ "struct", "u32", "i32", "f32", "if", "then", "else" ]
|
, reservedNames = [ "struct"
|
||||||
, reservedOpNames = [ "+", "-", "*", "/", "%" ]
|
, "u32"
|
||||||
|
, "i32"
|
||||||
|
, "f32"
|
||||||
|
, "if"
|
||||||
|
, "unless"
|
||||||
|
, "then"
|
||||||
|
, "else"
|
||||||
|
, "while"
|
||||||
|
, "until"
|
||||||
|
]
|
||||||
|
, reservedOpNames = [ "+"
|
||||||
|
, "-"
|
||||||
|
, "*"
|
||||||
|
, "/"
|
||||||
|
, "%"
|
||||||
|
, "<<"
|
||||||
|
, ">>"
|
||||||
|
, ">="
|
||||||
|
, "<="
|
||||||
|
, "<"
|
||||||
|
, ">"
|
||||||
|
, "=="
|
||||||
|
, "!="
|
||||||
|
, "&"
|
||||||
|
, "^"
|
||||||
|
, "|"
|
||||||
|
, "&&"
|
||||||
|
, "||"
|
||||||
|
, "="
|
||||||
|
]
|
||||||
, caseSensitive = True
|
, caseSensitive = True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue