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

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



1090
1091
1092
# File 'lib/treetop/compiler/metagrammar.rb', line 1090

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1084
1085
1086
1087
1088
# File 'lib/treetop/compiler/metagrammar.rb', line 1084

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

#sequence_elementsObject



1076
1077
1078
# File 'lib/treetop/compiler/metagrammar.rb', line 1076

def sequence_elements
  [head] + tail
end

#tailObject



1080
1081
1082
# File 'lib/treetop/compiler/metagrammar.rb', line 1080

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