Module: Treetop::Compiler::Metagrammar::Primary3

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

Instance Method Summary collapse

Instance Method Details

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



1047
1048
1049
# File 'lib/treetop/compiler/metagrammar.rb', line 1047

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

#inline_module_nameObject



1063
1064
1065
# File 'lib/treetop/compiler/metagrammar.rb', line 1063

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1059
1060
1061
# File 'lib/treetop/compiler/metagrammar.rb', line 1059

def inline_modules
  atomic.inline_modules + node_class_declarations.inline_modules
end

#node_class_nameObject



1055
1056
1057
# File 'lib/treetop/compiler/metagrammar.rb', line 1055

def node_class_name
  node_class_declarations.node_class_name
end

#optional_expressionObject



1051
1052
1053
# File 'lib/treetop/compiler/metagrammar.rb', line 1051

def optional_expression
  atomic
end