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

Defined in:
lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#alternativesObject



1086
1087
1088
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1086

def alternatives
  [head] + tail
end

#inline_moduleObject



1102
1103
1104
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1102

def inline_module
  nil
end

#inline_modulesObject



1098
1099
1100
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1098

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

#parent_modulesObject



1094
1095
1096
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1094

def parent_modules
  []
end

#tailObject



1090
1091
1092
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1090

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