Module: Treetop::Compiler::Metagrammar::LabeledSequencePrimary1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#compile(lexical_address, builder) ⇒ Object
1513 1514 1515 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1513 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1517 1518 1519 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1517 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1521 1522 1523 1524 1525 1526 1527 1528 1529 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1521 def label_name if label.name label.name elsif sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |