Sha256: 1dfbcd01724ce7d3dffa8de5f18e0178da0de83ef5e8edf1051724b087a1666b
Contents?: true
Size: 779 Bytes
Versions: 7
Compression:
Stored size: 779 Bytes
Contents
module Treetop module Compiler class AnythingSymbol < AtomicExpression def compile(address, builder, parent_expression = nil) super builder.if__ "index < input_length" do if address == 0 || decorated? assign_result "instantiate_node(#{node_class_name},input, index...(index + 1))" extend_result_with_inline_module parent_expression else assign_lazily_instantiated_node end builder << "@index += 1" end builder.else_ do builder << 'terminal_parse_failure("any character")' assign_result 'nil' end end def expected '"any character"' end def inline_module nil end end end end
Version data entries
7 entries across 7 versions & 1 rubygems