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

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

Instance Method Summary collapse

Instance Method Details

#alternativesObject



922
923
924
# File 'lib/treetop/compiler/metagrammar.rb', line 922

def alternatives
  [head] + tail
end

#inline_modulesObject



930
931
932
# File 'lib/treetop/compiler/metagrammar.rb', line 930

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

#tailObject



926
927
928
# File 'lib/treetop/compiler/metagrammar.rb', line 926

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