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



1211
1212
1213
# File 'lib/treetop/compiler/metagrammar.rb', line 1211

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

#inline_module_nameObject



1227
1228
1229
# File 'lib/treetop/compiler/metagrammar.rb', line 1227

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1223
1224
1225
# File 'lib/treetop/compiler/metagrammar.rb', line 1223

def inline_modules
  atomic.inline_modules + node_class_declarations.inline_modules
end

#node_class_nameObject



1219
1220
1221
# File 'lib/treetop/compiler/metagrammar.rb', line 1219

def node_class_name
  node_class_declarations.node_class_name
end

#optional_expressionObject



1215
1216
1217
# File 'lib/treetop/compiler/metagrammar.rb', line 1215

def optional_expression
  atomic
end