Sha256: 9eae9a01a9da8797d6e78f68cc208d1f6fada89e580ff240256e5a6ce1dc66fe
Contents?: true
Size: 540 Bytes
Versions: 334
Compression:
Stored size: 540 Bytes
Contents
module Treetop module Compiler class AnythingSymbol < AtomicExpression def compile(address, builder, parent_expression = nil) super builder.if__ "index < input_length" do assign_result "instantiate_node(#{node_class_name},input, index...(index + 1))" extend_result_with_inline_module builder << "@index += 1" end builder.else_ do builder << 'terminal_parse_failure("any character")' assign_result 'nil' end end end end end
Version data entries
334 entries across 289 versions & 37 rubygems