Module: Treetop::Compiler::Metagrammar::Primary7

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

Instance Method Summary collapse

Instance Method Details

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



1520
1521
1522
1523
# File 'lib/treetop/compiler/metagrammar.rb', line 1520

def compile(address, builder, parent_expression=nil)
	    STDERR.puts "Extraneous module ignored with nested atomic: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0
  atomic.compile(address, builder, self)
end

#inline_module_nameObject



1537
1538
1539
# File 'lib/treetop/compiler/metagrammar.rb', line 1537

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1533
1534
1535
# File 'lib/treetop/compiler/metagrammar.rb', line 1533

def inline_modules
  atomic.inline_modules + parent_modules
end

#node_class_nameObject



1525
1526
1527
# File 'lib/treetop/compiler/metagrammar.rb', line 1525

def node_class_name
  node_class_declarations.node_class_name
end

#parent_modulesObject



1529
1530
1531
# File 'lib/treetop/compiler/metagrammar.rb', line 1529

def parent_modules
  node_class_declarations.inline_modules
end