Module: Treetop::Compiler::Metagrammar::Primary5

Defined in:
lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#compile(address, builder, parent_expression = nil) ⇒ Object



1482
1483
1484
1485
# File 'lib/treetop/compiler/metagrammar.rb', line 1482

def compile(address, builder, parent_expression=nil)
	    # debugger if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
  suffix.compile(address, builder, self)
end

#inline_module_nameObject



1503
1504
1505
# File 'lib/treetop/compiler/metagrammar.rb', line 1503

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1499
1500
1501
# File 'lib/treetop/compiler/metagrammar.rb', line 1499

def inline_modules
  atomic.inline_modules + parent_modules
end

#node_class_nameObject



1491
1492
1493
# File 'lib/treetop/compiler/metagrammar.rb', line 1491

def node_class_name
  node_class_declarations.node_class_name
end

#optional_expressionObject



1487
1488
1489
# File 'lib/treetop/compiler/metagrammar.rb', line 1487

def optional_expression
  atomic
end

#parent_modulesObject



1495
1496
1497
# File 'lib/treetop/compiler/metagrammar.rb', line 1495

def parent_modules
  node_class_declarations.inline_modules
end