Method: Treetop::Compiler::ParsingRule#generate_cache_storage

Defined in:
lib/treetop/compiler/node_classes/parsing_rule.rb

#generate_cache_storage(builder, result_var) ⇒ Object



47
48
49
# File 'lib/treetop/compiler/node_classes/parsing_rule.rb', line 47

def generate_cache_storage(builder, result_var)
  builder.assign "node_cache[:#{name}][start_index]", result_var
end