Module: Treetop::Compiler::Metagrammar::UnlabeledSequencePrimary1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
- #compile(lexical_address, builder) ⇒ Object
- #inline_modules ⇒ Object
- #label_name ⇒ Object
- #parent_modules ⇒ Object
Instance Method Details
#compile(lexical_address, builder) ⇒ Object
1757 1758 1759 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1757 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1765 1766 1767 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1765 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1769 1770 1771 1772 1773 1774 1775 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1769 def label_name if sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |
#parent_modules ⇒ Object
1761 1762 1763 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1761 def parent_modules [] end |