lib/rley/parser/parse_forest_factory.rb in rley-0.5.04 vs lib/rley/parser/parse_forest_factory.rb in rley-0.5.05
- old
+ new
@@ -11,9 +11,16 @@
# Create a Builder, that is, an object
# that will create piece by piece the forest
def builder(aParseResult, _builder = nil)
ParseForestBuilder.new(aParseResult.tokens)
end
+
+ # When a end vertex is re-visited then jump
+ # its corresponding start vertex. This behaviour
+ # makes sense for sharing nodes.
+ def jump_to_start()
+ true
+ end
end # class
end # module
end # module
# End of file