Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
change the ->run method of passes to ->invoke
  • Loading branch information
pmurias committed Jan 2, 2011
1 parent 756b65f commit 8f0056c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Niecza/Compiler.pm
Expand Up @@ -7,7 +7,7 @@ sub compile {
my ($self,$input,$filename,$output) = @_;
my $ast = $self->frontend->parse($input,$filename);
for my $pass (@{$self->passes}) {
$ast = $pass->run($ast);
$ast = $pass->invoke($ast);
}
$self->backend->compile($ast,$output);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Niecza/Pass/Begin.pm
@@ -1,6 +1,6 @@
package Niecza::Pass::Begin;
use Moose;
sub run {
sub invoke {
my ($self,$ast) = @_;
$ast->begin;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Niecza/Pass/Beta.pm
@@ -1,7 +1,7 @@
package Niecza::Pass::Beta;
use Optimizer::Beta;
use Moose;
sub run {
sub invoke {
my ($self,$ast) = @_;
Optimizer::Beta::run($ast);
$ast;
Expand Down
2 changes: 1 addition & 1 deletion src/Niecza/Pass/Simplifier.pm
@@ -1,7 +1,7 @@
package Niecza::Pass::Simplifier;
use Optimizer::Simplifier;
use Moose;
sub run {
sub invoke {
my ($self,$ast) = @_;
Optimizer::Simplifier::run($ast);
$ast;
Expand Down

0 comments on commit 8f0056c

Please sign in to comment.