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

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

Instance Method Summary collapse

Instance Method Details

#alternativesObject



955
956
957
# File 'lib/treetop/compiler/metagrammar.rb', line 955

def alternatives
  [head] + tail
end

#inline_modulesObject



963
964
965
# File 'lib/treetop/compiler/metagrammar.rb', line 963

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

#tailObject



959
960
961
# File 'lib/treetop/compiler/metagrammar.rb', line 959

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