Skip to content

Commit

Permalink
convert compiler to new api.
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Aug 24, 2011
1 parent 808f625 commit 0160878
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/grammar.pl
Expand Up @@ -4,8 +4,10 @@

open IN, shift or die;
my $testml = do {local $/; <IN>};
# my $perl = Pegex::Compiler->compile($testml)->combinate->to_perl;
my $perl = Pegex::Compiler::Bootstrap->compile($testml)->combinate->to_perl; # XXX
# my $pegex = Pegex::Compiler->new;
my $pegex = Pegex::Compiler::Bootstrap->new;
$pegex->compile($testml);
my $perl = $pegex->to_perl;
chomp($perl);

print <<"...";
Expand Down

0 comments on commit 0160878

Please sign in to comment.