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

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



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

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



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

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

#parent_modulesObject



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

def parent_modules
  node_class_declarations.inline_modules
end

#sequence_elementsObject



1177
1178
1179
# File 'lib/treetop/compiler/metagrammar.rb', line 1177

def sequence_elements
  [sequence_body.head] + tail
end

#tailObject



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

def tail
  sequence_body.tail
end