Module: Treetop::Compiler::Metagrammar::Sequence2
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#inline_module_name ⇒ Object
1054 1055 1056 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1054 def inline_module_name node_class_declarations.inline_module_name end |
#inline_modules ⇒ Object
1048 1049 1050 1051 1052 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1048 def inline_modules (sequence_elements.map {|elt| elt.inline_modules}).flatten + [sequence_element_accessor_module] + node_class_declarations.inline_modules end |
#sequence_elements ⇒ Object
1040 1041 1042 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1040 def sequence_elements [head] + tail end |
#tail ⇒ Object
1044 1045 1046 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1044 def tail super.elements.map {|elt| elt.labeled_sequence_primary } end |