Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
started creating the script for the refactored compiler
  • Loading branch information
pmurias committed Jan 2, 2011
1 parent 7a14f4f commit 09646fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions niecza
@@ -0,0 +1,17 @@
#!/usr/bin/perl
#my $compiler = Niecza::Compiler->new(
# frontend=>Niecza::Frontend::STD->new()
#);

use lib 'src';
use Niecza::Frontend::STD;
use Niecza::Backend::NAM;
use Metamodel;

my $parser = Niecza::Frontend::STD->new(lang=>'CORE');
my $backend = Niecza::Backend::NAM->new();
my $ast = $parser->parse('123');
$ast = $ast->begin;
$backend->compile($ast,'file.nam');


0 comments on commit 09646fd

Please sign in to comment.