Skip to content

Commit

Permalink
Implement ?? !!
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Jul 25, 2010
1 parent 989e088 commit 8e38cd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Niecza/Actions.pm
Expand Up @@ -291,6 +291,11 @@ sub INFIX { my ($cl, $M) = @_;
$M->{_ast} = Op::Bind->new(lhs => $l, rhs => $r, readonly => 0);
return;
}
if ($s eq '?? !!') { # XXX macro
$M->{_ast} = Op::Conditional->new(check => $l,
true => $M->{middle}{_ast}, false => $r);
return;
}
if ($s eq ',') {
#XXX STD bug causes , in setting to be parsed as left assoc
my @r;
Expand Down Expand Up @@ -776,6 +781,7 @@ sub terminator__S_again {}
sub terminator__S_repeat {}
sub terminator__S_while {}
sub terminator__S_else {}
sub terminator__S_BangBang {}
sub stdstopper {}
sub unitstopper {}
sub eat_terminator {}
Expand Down

0 comments on commit 8e38cd1

Please sign in to comment.