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

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



912
913
914
# File 'lib/treetop/compiler/metagrammar.rb', line 912

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



906
907
908
909
910
# File 'lib/treetop/compiler/metagrammar.rb', line 906

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

#sequence_elementsObject



898
899
900
# File 'lib/treetop/compiler/metagrammar.rb', line 898

def sequence_elements
  [head] + tail
end

#tailObject



902
903
904
# File 'lib/treetop/compiler/metagrammar.rb', line 902

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