Module: Treetop::Compiler::Metagrammar::Sequence2

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



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

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



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

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

#sequence_elementsObject



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

def sequence_elements
  [head] + tail
end

#tailObject



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

def tail
  super.elements.map {|elt| elt.labeled_sequence_primary }
end