Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added the backend which outputs the ast as NAM
  • Loading branch information
pmurias committed Jan 2, 2011
1 parent 77dab6d commit 7a14f4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Niecza/Backend/NAM.pm
@@ -0,0 +1,15 @@
package Niecza::Backend::NAM;
use NAMBackend;
use Moose;

#has optimizer=>(is=>'rw');
# $ast = $self->optimizer->run($ast);

sub compile {
my ($self,$ast,$output) = @_;
my $nam = NAMBackend::run($ast);
open my $fh, ">", $output;
print $fh $nam;
close $fh;
}
1;

0 comments on commit 7a14f4f

Please sign in to comment.