Module: Treetop::Compiler::Metagrammar::LabeledSequencePrimary1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#compile(lexical_address, builder) ⇒ Object
1327 1328 1329 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1327 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1331 1332 1333 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1331 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1335 def label_name if label.name label.name elsif sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |