xsawyerx / guacamole

Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
https://metacpan.org/pod/Guacamole
20 stars 8 forks source link

Add conditions #15

Closed xsawyerx closed 4 years ago

xsawyerx commented 4 years ago

[This includes the commits from #14 and needs to be rebased before it's merged.]

if ( EXPR ) {...}
if ( EXPR ) {...} elsif ( EXPR ) {...}
if ( EXPR ) {...} else { ... }
if ( EXPR ) {...} elsif ( EXPR ) {...} else {...}
unless ( EXPR ) {...}

EXPR if EXPR
EXPR unless EXPR
EXPR while EXPR
EXPR until EXPR
EXPR for EXPR
EXPR foreach EXPR
EXPR when EXPR