Module: Treetop::Compiler::Metagrammar::DeclarationSequence2
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#declarations ⇒ Object
676 677 678 |
# File 'lib/treetop/compiler/metagrammar.rb', line 676 def declarations [head] + tail end |
#tail ⇒ Object
680 681 682 |
# File 'lib/treetop/compiler/metagrammar.rb', line 680 def tail super.elements.map { |elt| elt.declaration } end |