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
1785 1786 1787 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1785 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1793 1794 1795 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1793 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1797 1798 1799 1800 1801 1802 1803 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1797 def label_name if sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |
#parent_modules ⇒ Object
1789 1790 1791 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1789 def parent_modules [] end |