added nil, true, false literals to the parser!
This commit is contained in:
parent
333b8e7450
commit
1da782920e
|
@ -54,6 +54,9 @@ infixexp:
|
|||
| e1 = infixexp; op = Binop; e2 = singleexp { infix_app e1 op e2 }
|
||||
|
||||
singleexp:
|
||||
| "nil" { Literal Nil }
|
||||
| "true" { Literal True }
|
||||
| "false" { Literal False }
|
||||
| i = Int { Literal (Int i) }
|
||||
| p = path { Path p }
|
||||
| f = path; a = args { Call (f, a) }
|
||||
|
|
Loading…
Reference in New Issue