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

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

Instance Method Summary collapse

Instance Method Details

#declarationsObject



557
558
559
# File 'lib/treetop/compiler/metagrammar.rb', line 557

def declarations
  [head] + tail
end

#tailObject



561
562
563
# File 'lib/treetop/compiler/metagrammar.rb', line 561

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