Created
April 29, 2012 16:30
-
-
Save jnthn/2551710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use QRegex; | |
sub qast_to_pir($qast) { | |
my $post := QAST::Compiler.as_post($qast); | |
my $pir := QAST::Compiler.pir($post); | |
say($pir); | |
} | |
qast_to_pir(QAST::Block.new( | |
QAST::Op.new( | |
:op('unless'), | |
QAST::IVal.new(:value(0)), | |
QAST::IVal.new(:value(2)) | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment