projects
/
kaleidoscope-hs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
d6cecbb
)
Parse more binary ops
author
Luke Lau
<luke_lau@icloud.com>
Sat, 18 May 2019 16:17:41 +0000
(17:17 +0100)
committer
Luke Lau
<luke_lau@icloud.com>
Sat, 18 May 2019 22:35:42 +0000
(23:35 +0100)
We can parameterise the precedence that we parse so that * is parsed
before +/- etc.
Try it out with `ghci AST.hs`, and see the difference between
*AST> read "1 * 2 - 3"
and
*AST> read "1 + 2 - 3"
No differences found