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

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

Instance Method Summary collapse

Instance Method Details

#inline_moduleObject



1199
1200
1201
# File 'lib/treetop/compiler/metagrammar.rb', line 1199

def inline_module
  node_class_declarations.inline_module
end

#inline_module_nameObject



1203
1204
1205
# File 'lib/treetop/compiler/metagrammar.rb', line 1203

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1193
1194
1195
1196
1197
# File 'lib/treetop/compiler/metagrammar.rb', line 1193

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

#parent_modulesObject



1189
1190
1191
# File 'lib/treetop/compiler/metagrammar.rb', line 1189

def parent_modules
  node_class_declarations.inline_modules
end

#sequence_elementsObject



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

def sequence_elements
  [sequence_body.head] + tail
end

#tailObject



1185
1186
1187
# File 'lib/treetop/compiler/metagrammar.rb', line 1185

def tail
  sequence_body.tail
end