Parrot Parrot Compiler Toolkit #46

calc example -- as PIR!

$ ./calc --target=pir
> 3 + 4

.namespace
.sub "anon"
    new $P10, "Integer"
    assign $P10, 3
    add $P11, $P10, 4
    "say"($P11)
.end
Copyright © 2009
http://www.pmichaud.com/2009/pres/