Module: Treetop::Compiler::Metagrammar::LabeledSequencePrimary1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#compile(lexical_address, builder) ⇒ Object
1185 1186 1187 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1185 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1189 1190 1191 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1189 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1193 1194 1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1193 def label_name if label.name label.name elsif sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |