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


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

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


1580
1581
1582
# File 'lib/treetop/compiler/metagrammar.rb', line 1580

def inline_module
       node_class_declarations.inline_module
end

#inline_module_nameObject


1584
1585
1586
# File 'lib/treetop/compiler/metagrammar.rb', line 1584

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject


1576
1577
1578
# File 'lib/treetop/compiler/metagrammar.rb', line 1576

def inline_modules
  atomic.inline_modules + parent_modules
end

#node_class_nameObject


1568
1569
1570
# File 'lib/treetop/compiler/metagrammar.rb', line 1568

def node_class_name
  node_class_declarations.node_class_name
end

#parent_modulesObject


1572
1573
1574
# File 'lib/treetop/compiler/metagrammar.rb', line 1572

def parent_modules
  node_class_declarations.inline_modules
end