Module: Treetop::Compiler::Metagrammar::UnlabeledSequencePrimary1

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

Instance Method Summary collapse

Instance Method Details

#compile(lexical_address, builder) ⇒ Object



1805
1806
1807
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1805

def compile(lexical_address, builder)
  sequence_primary.compile(lexical_address, builder)
end

#inline_modulesObject



1813
1814
1815
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1813

def inline_modules
  sequence_primary.inline_modules
end

#label_nameObject



1817
1818
1819
1820
1821
1822
1823
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1817

def label_name
  if sequence_primary.instance_of?(Nonterminal)
    sequence_primary.text_value
  else
    nil
  end
end

#parent_modulesObject



1809
1810
1811
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/metagrammar.rb', line 1809

def parent_modules
  []
end