Always compute lookahead tokens for reduce rules
Even if they won't be needed for the generated parser, they'll be useful to detect shift/reduce conflicts.
This commit is contained in:
1 parent
7f3eb8f315
commit
69cc8fa67d
2 files changed
+25
-24
No files matched your search
@@ -21,8 +21,13 @@ class Propane
|
||||
# ItemSets leading to this item set.
|
||||
attr_reader :in_sets
|
||||
|
||||
# @return [nil, Rule, Hash]
|
||||
# Reduce actions, mapping lookahead tokens to rules.
|
||||
# @return [nil, Rule]
|
||||
# Rule to reduce if there is only one possibility.
|
||||
attr_accessor :reduce_rule
|
||||
|
||||
# @return [nil, Hash]
|
||||
# Reduce actions, mapping lookahead tokens to rules, if there is
|
||||
# more than one rule that could be reduced.
|
||||
attr_accessor :reduce_actions
|
||||
|
||||
# @return [Set<Token>]
|
||||
|
||||
Reference in new issue
Block a user