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



1541
1542
1543
1544
1545
1546
# File 'lib/treetop/compiler/metagrammar.rb', line 1541

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

#inline_moduleObject



1560
1561
1562
# File 'lib/treetop/compiler/metagrammar.rb', line 1560

def inline_module
       node_class_declarations.inline_module
end

#inline_module_nameObject



1564
1565
1566
# File 'lib/treetop/compiler/metagrammar.rb', line 1564

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1556
1557
1558
# File 'lib/treetop/compiler/metagrammar.rb', line 1556

def inline_modules
  atomic.inline_modules + parent_modules
end

#node_class_nameObject



1548
1549
1550
# File 'lib/treetop/compiler/metagrammar.rb', line 1548

def node_class_name
  node_class_declarations.node_class_name
end

#parent_modulesObject



1552
1553
1554
# File 'lib/treetop/compiler/metagrammar.rb', line 1552

def parent_modules
  node_class_declarations.inline_modules
end