Skip to content

Conversation

stroan
Copy link
Contributor

@stroan stroan commented Oct 7, 2012

Adding a few simple bin-ops.

@@ -77,6 +79,7 @@
%nonassoc EQ
%left '+' '-'
%left '*' '/'
%right '<' '>' LESSEQ GREATEREQ
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be %nonassoc, with the same precedence as EQ, I think (1 < 2 < 3 should be a parse error).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants