use v5.10;
use VAST;
BEGIN {
for (<src/VAST/*.pm>) {
require $_;
}
}
class Mildew::Compiler {
has frontend => (is=>'ro');
has backend => (is=>'ro');
method ast($code) {
$self->frontend->parse($code);
}
method run($code) {
$self->backend->run($self->ast($code));
}
method compile($code,$output) {
$self->backend->compile($self->ast($code),$output);
}
}