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

#requiresObject



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

def requires
  elements[0]
end

#spacingObject



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

def spacing
  elements[1]
end

#suffixObject



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

def suffix
  elements[3]
end