|
|
@@ -39,7 +39,8 @@ class Parser: |
|
|
|
|
|
|
|
self.forest_sum_visitor = None |
|
|
|
for rule in parser_conf.rules: |
|
|
|
self.predictions[rule.origin] = [x.rule for x in analysis.expand_rule(rule.origin)] |
|
|
|
if rule.origin not in self.predictions: |
|
|
|
self.predictions[rule.origin] = [x.rule for x in analysis.expand_rule(rule.origin)] |
|
|
|
|
|
|
|
## Detect if any rules have priorities set. If the user specified priority = "none" then |
|
|
|
# the priorities will be stripped from all rules before they reach us, allowing us to |
|
|
|