Module: Treetop::Compiler::Metagrammar::LabeledSequencePrimary1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#compile(lexical_address, builder) ⇒ Object
1377 1378 1379 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1377 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1381 1382 1383 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1381 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1385 1386 1387 1388 1389 1390 1391 1392 1393 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1385 def label_name if label.name label.name elsif sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |