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
1977 1978 1979 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1977 def compile(lexical_address, builder) sequence_primary.compile(lexical_address, builder) end |
#inline_modules ⇒ Object
1985 1986 1987 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1985 def inline_modules sequence_primary.inline_modules end |
#label_name ⇒ Object
1989 1990 1991 1992 1993 1994 1995 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1989 def label_name if sequence_primary.instance_of?(Nonterminal) sequence_primary.text_value else nil end end |
#parent_modules ⇒ Object
1981 1982 1983 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1981 def parent_modules [] end |