class Rley::ParseRep::ParseForestFactory
Utility class that helps to create a ParseForest from a given Parsing object.
Protected Instance Methods
Source
# File lib/rley/parse_rep/parse_forest_factory.rb, line 15 def builder(aParseResult, _builder = nil) ParseForestBuilder.new(aParseResult.tokens) end
Create a Builder, that is, an object that will create piece by piece the forest
Source
# File lib/rley/parse_rep/parse_forest_factory.rb, line 22 def jump_to_start true end
When an end vertex is re-visited then jump its corresponding start vertex. This behaviour makes sense for sharing nodes.