Module: Treetop::Compiler::Metagrammar::Sequence1

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



1180
1181
1182
# File 'lib/treetop/compiler/metagrammar.rb', line 1180

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1174
1175
1176
1177
1178
# File 'lib/treetop/compiler/metagrammar.rb', line 1174

def inline_modules
  (sequence_elements.map {|elt| elt.inline_modules}).flatten +
  [sequence_element_accessor_module] +
  node_class_declarations.inline_modules
end

#sequence_elementsObject



1166
1167
1168
# File 'lib/treetop/compiler/metagrammar.rb', line 1166

def sequence_elements
  [sequence_body.head] + tail
end

#tailObject



1170
1171
1172
# File 'lib/treetop/compiler/metagrammar.rb', line 1170

def tail
  sequence_body.tail
end