Module: Treetop::Compiler::Metagrammar::Sequence1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
- #inline_module_name ⇒ Object
- #inline_modules ⇒ Object
- #parent_modules ⇒ Object
- #sequence_elements ⇒ Object
- #tail ⇒ Object
Instance Method Details
#inline_module_name ⇒ Object
1195 1196 1197 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1195 def inline_module_name node_class_declarations.inline_module_name end |
#inline_modules ⇒ Object
1189 1190 1191 1192 1193 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1189 def inline_modules (sequence_elements.map {|elt| elt.inline_modules}).flatten + [sequence_element_accessor_module] + parent_modules end |
#parent_modules ⇒ Object
1185 1186 1187 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1185 def parent_modules node_class_declarations.inline_modules end |
#sequence_elements ⇒ Object
1177 1178 1179 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1177 def sequence_elements [sequence_body.head] + tail end |
#tail ⇒ Object
1181 1182 1183 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1181 def tail sequence_body.tail end |