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


1443
1444
1445
# File 'lib/treetop/compiler/metagrammar.rb', line 1443

def compile(address, builder, parent_expression=nil)
  suffix.compile(address, builder, self)
end

#inline_module_nameObject


1459
1460
1461
# File 'lib/treetop/compiler/metagrammar.rb', line 1459

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject


1455
1456
1457
# File 'lib/treetop/compiler/metagrammar.rb', line 1455

def inline_modules
  atomic.inline_modules + node_class_declarations.inline_modules
end

#node_class_nameObject


1451
1452
1453
# File 'lib/treetop/compiler/metagrammar.rb', line 1451

def node_class_name
  node_class_declarations.node_class_name
end

#optional_expressionObject


1447
1448
1449
# File 'lib/treetop/compiler/metagrammar.rb', line 1447

def optional_expression
  atomic
end