Module: Treetop::Compiler::Metagrammar::TreetopFile1

Defined in:
lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#module_or_grammarObject



28
29
30
# File 'lib/treetop/compiler/metagrammar.rb', line 28

def module_or_grammar
  elements[2]
end

#prefixObject



24
25
26
# File 'lib/treetop/compiler/metagrammar.rb', line 24

def prefix
  elements[1]
end

#requiresObject



20
21
22
# File 'lib/treetop/compiler/metagrammar.rb', line 20

def requires
  elements[0]
end

#suffixObject



32
33
34
# File 'lib/treetop/compiler/metagrammar.rb', line 32

def suffix
  elements[3]
end