Fix precedence calculations when building parse table
* Recurse into choice rules * Compute reduction precedence differently than shift precedence
This commit is contained in:
parent
14d7ebb7da
commit
97bb7a26cf
15 changed files with 240 additions and 71 deletions
|
|
@ -15,7 +15,8 @@ class Rule;
|
|||
typedef std::shared_ptr<Rule> rule_ptr;
|
||||
|
||||
enum Associativity {
|
||||
AssociativityLeft = 1,
|
||||
AssociativityNone = 0,
|
||||
AssociativityLeft,
|
||||
AssociativityRight,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue