lib/rley/parser/parse_state.rb in rley-0.1.11 vs lib/rley/parser/parse_state.rb in rley-0.1.12
- old
+ new
@@ -29,9 +29,14 @@
# In other words, the complete rhs matches the input.
def complete?()
return dotted_rule.reduce_item?
end
+ # Returns true if the dot is at the start of the rhs of the production.
+ def predicted?()
+ return dotted_rule.predicted_item?
+ end
+
# Next expected symbol in the production
def next_symbol()
return dotted_rule.next_symbol
end