Methods

Files

Class/Module Index [+]

Quicksearch

Treetop::Compiler::OneOrMore

Public Instance Methods

compile(address, builder, parent_expression) click to toggle source
# File lib/treetop/compiler/node_classes/repetition.rb, line 51
def compile(address, builder, parent_expression)
  super
  builder.if__ "#{accumulator_var}.empty?" do
    reset_index
    assign_failure start_index_var
  end
  builder.else_ do
    assign_and_extend_result
  end
  end_comment(parent_expression)
end
max() click to toggle source
# File lib/treetop/compiler/node_classes/repetition.rb, line 63
def max
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.