Sha256: 068feff10e4bf4028d9e014e7ce7db60410404a9d185324d0d53f55c61807843
Contents?: true
Size: 498 Bytes
Versions: 371
Compression:
Stored size: 498 Bytes
Contents
module Treetop module Compiler class Optional < ParsingExpression def compile(address, builder, parent_expression) super use_vars :result obtain_new_subexpression_address parent_expression.atomic.compile(subexpression_address, builder) builder.if__ subexpression_success? do assign_result subexpression_result_var end builder.else_ do assign_result epsilon_node end end end end end
Version data entries
371 entries across 326 versions & 43 rubygems