Class: Treetop::Compiler::TreetopFile

Inherits:
Runtime::SyntaxNode show all
Defined in:
lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/treetop_file.rb

Instance Attribute Summary

Attributes inherited from Runtime::SyntaxNode

#elements, #input, #interval, #parent

Instance Method Summary collapse

Methods inherited from Runtime::SyntaxNode

#empty?, #extension_modules, #initialize, #inspect, #nonterminal?, #terminal?, #text_value

Constructor Details

This class inherits a constructor from Treetop::Runtime::SyntaxNode

Instance Method Details

#compileObject



4
5
6
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/treetop_file.rb', line 4

def compile
  (elements.map {|elt| elt.compile}).join
end