Skip to content

Commit

Permalink
Fix --target=parse in rakudo
Browse files Browse the repository at this point in the history
Remove unless clause that doesn't load the actions if --target=parse.
Was likely an optimization, but working code always beats an optimization.
  • Loading branch information
Mouq committed Sep 30, 2013
1 parent c6320d3 commit 3ea14a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HLL/Compiler.nqp
Expand Up @@ -413,7 +413,7 @@ class HLL::Compiler does HLL::Backend::Default {
}
my $grammar := self.parsegrammar;
my $actions;
$actions := self.parseactions unless %adverbs<target> eq 'parse';
$actions := self.parseactions;
$grammar.HOW.trace-on($grammar) if %adverbs<rxtrace>;
my $match := $grammar.parse($s, p => 0, actions => $actions);
$grammar.HOW.trace-off($grammar) if %adverbs<rxtrace>;
Expand Down

0 comments on commit 3ea14a9

Please sign in to comment.