Module: Treetop::Compiler::Metagrammar::TreetopFile1
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
Instance Method Details
#module_or_grammar ⇒ Object
28 29 30 |
# File 'lib/treetop/compiler/metagrammar.rb', line 28 def module_or_grammar elements[2] end |
#prefix ⇒ Object
24 25 26 |
# File 'lib/treetop/compiler/metagrammar.rb', line 24 def prefix elements[1] end |
#requires ⇒ Object
20 21 22 |
# File 'lib/treetop/compiler/metagrammar.rb', line 20 def requires elements[0] end |
#suffix ⇒ Object
32 33 34 |
# File 'lib/treetop/compiler/metagrammar.rb', line 32 def suffix elements[3] end |