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

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

Instance Method Summary collapse

Instance Method Details

#compile(lexical_address, builder) ⇒ Object



1758
1759
1760
# File 'lib/treetop/compiler/metagrammar.rb', line 1758

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

#inline_modulesObject



1766
1767
1768
# File 'lib/treetop/compiler/metagrammar.rb', line 1766

def inline_modules
  sequence_primary.inline_modules
end

#label_nameObject



1770
1771
1772
1773
1774
1775
1776
# File 'lib/treetop/compiler/metagrammar.rb', line 1770

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

#parent_modulesObject



1762
1763
1764
# File 'lib/treetop/compiler/metagrammar.rb', line 1762

def parent_modules
  []
end