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

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

Instance Method Summary collapse

Instance Method Details

#inline_module_nameObject



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

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



1161
1162
1163
1164
1165
# File 'lib/treetop/compiler/metagrammar.rb', line 1161

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

#sequence_elementsObject



1153
1154
1155
# File 'lib/treetop/compiler/metagrammar.rb', line 1153

def sequence_elements
  [sequence_body.head] + tail
end

#tailObject



1157
1158
1159
# File 'lib/treetop/compiler/metagrammar.rb', line 1157

def tail
  sequence_body.tail
end