Commit fa8ca65d authored by Kenton Varda's avatar Kenton Varda

Reserve 'on'.

parent edd07d5a
......@@ -33,6 +33,7 @@ import Token
keywords =
[ (InKeyword, "in")
, (OfKeyword, "of")
, (OnKeyword, "on")
, (AsKeyword, "as")
, (WithKeyword, "with")
, (FromKeyword, "from")
......
......@@ -49,6 +49,7 @@ tokenErrorString MinusSign = "\"-\""
tokenErrorString ExclamationPoint = "\"!\""
tokenErrorString InKeyword = "keyword \"in\""
tokenErrorString OfKeyword = "keyword \"of\""
tokenErrorString OnKeyword = "keyword \"on\""
tokenErrorString AsKeyword = "keyword \"as\""
tokenErrorString WithKeyword = "keyword \"with\""
tokenErrorString FromKeyword = "keyword \"from\""
......
......@@ -50,7 +50,8 @@ data Token = Identifier String
| MinusSign
| ExclamationPoint
| InKeyword
| OfKeyword
| OfKeyword -- We reserve some common, short English words for use as future keywords.
| OnKeyword
| AsKeyword
| WithKeyword
| FromKeyword
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment