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

Defined in:
lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#declarationsObject



381
382
383
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb', line 381

def declarations
  [head] + tail
end

#tailObject



385
386
387
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb', line 385

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