Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Switch to use definedness instead of truthiness for adding nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 24, 2009
1 parent 8468ad8 commit 32ed0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HLL/Actions.pm
Expand Up @@ -79,15 +79,15 @@ method EXPR($/, $key?) {
}
if $key eq 'POSTFIX' { $past.unshift($/[0].ast); }
else {
for $/.list { if $_.ast { $past.push($_.ast); } }
for $/.list { if pir::defined__IP($_.ast) { $past.push($_.ast); } }
}
make $past;
}

method term:sym<circumfix>($/) { make $<circumfix>.ast }

method termish($/) { make $<term>.ast; }
method nullterm($/) { make 0; }
method nullterm($/) { make Q:PIR { %r = new ['Undef'] }; }
method nullterm_alt($/) { make $<term>.ast; }
method integer($/) { make $<VALUE>.ast; }
Expand Down

0 comments on commit 32ed0f5

Please sign in to comment.