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

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

Instance Method Summary collapse

Instance Method Details

#declarationsObject



575
576
577
# File 'lib/treetop/compiler/metagrammar.rb', line 575

def declarations
  [head] + tail
end

#tailObject



579
580
581
# File 'lib/treetop/compiler/metagrammar.rb', line 579

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