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

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

Instance Method Summary collapse

Instance Method Details

#inline_moduleObject



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

def inline_module
  node_class_declarations.inline_module
end

#inline_module_nameObject



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

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



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

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

#parent_modulesObject



1209
1210
1211
# File 'lib/treetop/compiler/metagrammar.rb', line 1209

def parent_modules
  node_class_declarations.inline_modules
end

#sequence_elementsObject



1201
1202
1203
# File 'lib/treetop/compiler/metagrammar.rb', line 1201

def sequence_elements
  [sequence_body.head] + tail
end

#tailObject



1205
1206
1207
# File 'lib/treetop/compiler/metagrammar.rb', line 1205

def tail
  sequence_body.tail
end