aboutsummaryrefslogtreecommitdiff
path: root/examples/comparisons.cup
Commit message (Collapse)AuthorAgeFilesLines
* Fix examples to include return type on main functionMustafa Quraish2022-02-021-1/+1
| | | | With the fancy new type checking these are now required.
* Add relational and logical operators + refactor binop parserMustafa Quraish2022-01-291-0/+3
We now support OR and AND with short circuiting! (Yet to be tested since we don't yet have local variables to play with). The binop parser took a bit of an overhaul factoring out the common code so that it's easier to describe the operator precendence relationships without being overly repetitive.