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