Module: Treetop::Compiler::Metagrammar::DeclarationSequence2

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

Instance Method Summary collapse

Instance Method Details

#declarationsObject


666
667
668
# File 'lib/treetop/compiler/metagrammar.rb', line 666

def declarations
  [head] + tail
end

#tailObject


670
671
672
# File 'lib/treetop/compiler/metagrammar.rb', line 670

def tail
  super.elements.map { |elt| elt.declaration }
end