Skip to content

Commit

Permalink
RakuAST: reverse order of test
Browse files Browse the repository at this point in the history
Saves one nqp::isnull, and reads better
  • Loading branch information
lizmat committed Sep 1, 2023
1 parent 57b92f0 commit f3da4c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,13 +1474,13 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
self.EXPR-reduce(@termstack, @opstack);
}
if nqp::isnull(nqp::atkey(%inO, 'adverb')) {
$more_infix := 0;
}
else {
if nqp::atkey(%inO,'adverb') {
nqp::push(@opstack, $infix);
self.EXPR-reduce(@termstack, @opstack);
}
else {
$more_infix := 0;
}
}
last if $term_done;
Expand Down

0 comments on commit f3da4c1

Please sign in to comment.