add some keywords

This commit is contained in:
rhiannon morris 2022-05-04 15:30:52 +02:00
parent 96e81584b6
commit 4973ce15bd
2 changed files with 18 additions and 1 deletions

View file

@ -109,6 +109,16 @@ tests = "lexer" :- [
rejects' "1abc"
],
"keywords" :- [
acceptsWith' "fun" [K Fun],
acceptsWith' "λ" [K Fun],
acceptsWith' "let" [K Let],
acceptsWith' "in" [K In],
acceptsWith' "case" [K Case],
acceptsWith' "of" [K Of],
acceptsWith' "funk" [Name "funk"]
],
"numbers" :- [
acceptsWith' "0" [N Zero],
acceptsWith' "1" [N One],