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

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

Instance Method Summary collapse

Instance Method Details

#compile(lexical_address, builder) ⇒ Object



1721
1722
1723
# File 'lib/treetop/compiler/metagrammar.rb', line 1721

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

#inline_modulesObject



1725
1726
1727
# File 'lib/treetop/compiler/metagrammar.rb', line 1725

def inline_modules
  sequence_primary.inline_modules
end

#label_nameObject



1729
1730
1731
1732
1733
1734
1735
# File 'lib/treetop/compiler/metagrammar.rb', line 1729

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