Class Voodoo::Compiler
In: voodoo/compiler.rb
Parent: Object

Voodoo compiler driver. The compiler driver reads input from a parser (see Voodoo::Parser), feeds it to a code generator (see Voodoo::CommonCodeGenerator), and writes the generated code.

An example of its usage can be found on the main page for the Voodoo module.

Methods

compile   new  

Classes and Modules

Class Voodoo::Compiler::Error

Public Class methods

Initialize a compiler.

Parameters:

parser
the parser to be used (see Voodoo::Parser)
code_generator
the code generator to be used (see Voodoo::CommonCodeGenerator)
output
an IO object. The generated code will be written to it

Public Instance methods

Perform the compilation.

[Validate]