Sha256: c0db5a94d19ea52682f5b949a25e1cecae74446b981475690754f6a626933914
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
module Treetop class SyntaxNode < ParseResult attr_reader :input, :interval def initialize(input, interval, nested_failures = []) super(nested_failures) @input = input @interval = interval end def update_nested_failures(failures) @nested_failures = select_failures_at_maximum_index(nested_failures + failures) end def text_value input[interval] end def success? true end def failure? false end def epsilon? false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treetop-0.1.0 | lib/treetop/parser/syntax_node.rb |