module Treetop::Compiler::Metagrammar::Choice2

Public Instance Methods

alternatives() click to toggle source
# File lib/treetop/compiler/metagrammar.rb, line 1086
def alternatives
  [head] + tail
end
inline_module() click to toggle source
# File lib/treetop/compiler/metagrammar.rb, line 1102
def inline_module
    nil
  end
inline_modules() click to toggle source
# File lib/treetop/compiler/metagrammar.rb, line 1098
def inline_modules
  (alternatives.map {|alt| alt.inline_modules }).flatten
end
parent_modules() click to toggle source
# File lib/treetop/compiler/metagrammar.rb, line 1094
def parent_modules
  []
end
tail() click to toggle source
Calls superclass method
# File lib/treetop/compiler/metagrammar.rb, line 1090
def tail
  super.elements.map {|elt| elt.alternative}
end