calc example -- as PIR!
$ ./parrot calc.pbc --target=pir
> 3 + 4
.namespace
.sub "anon"
new $P10, "Integer"
assign $P10, 3
n_add $P11, $P10, 4
"say"($P11)
.end
| Programming Parrot | Programming Parrot | #46 |
$ ./parrot calc.pbc --target=pir
> 3 + 4
.namespace
.sub "anon"
new $P10, "Integer"
assign $P10, 3
n_add $P11, $P10, 4
"say"($P11)
.end
| Copyright © 2008 Patrick Michaud |