Module: Treetop::Compiler::Metagrammar::Choice2

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

Instance Method Summary collapse

Instance Method Details

#alternativesObject



780
781
782
# File 'lib/treetop/compiler/metagrammar.rb', line 780

def alternatives
  [head] + tail
end

#inline_modulesObject



788
789
790
# File 'lib/treetop/compiler/metagrammar.rb', line 788

def inline_modules
  (alternatives.map {|alt| alt.inline_modules }).flatten
end

#tailObject



784
785
786
# File 'lib/treetop/compiler/metagrammar.rb', line 784

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