Replace prec rule w/ left_assoc and right_assoc
Consider shift/reduce conflicts to be compilation errors unless they are resolved by a specified associativity.
This commit is contained in:
parent
86bd6eaa75
commit
80ec303b10
19 changed files with 27040 additions and 25946 deletions
|
|
@ -95,11 +95,13 @@ a++ + b * c - d / e--
|
|||
|
||||
---
|
||||
(expression_statement
|
||||
(math_op
|
||||
(math_op
|
||||
(math_op (identifier))
|
||||
(math_op
|
||||
(math_op (identifier) (identifier))
|
||||
(math_op (identifier) (math_op (identifier))))))
|
||||
(math_op (identifier))
|
||||
(math_op (identifier) (identifier)))
|
||||
(math_op
|
||||
(identifier)
|
||||
(math_op (identifier)))))
|
||||
|
||||
==========================================
|
||||
boolean operators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue