Module: Treetop::Compiler::Metagrammar::TreetopFile0

Defined in:
lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#module_or_grammarObject



15
16
17
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb', line 15

def module_or_grammar
  elements[1]
end

#prefixObject



11
12
13
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb', line 11

def prefix
  elements[0]
end

#suffixObject



19
20
21
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb', line 19

def suffix
  elements[2]
end