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