Perl 6 / Parrot Parrot Compiler Toolkit #20

calc example -- PAST output

$ make
$ ./parrot calc.pbc --target=past
> 3 + 4
"past" => PMC 'PAST::Op'  {
    <name> => "say"
    [0] => PMC 'PAST::Op'  {
        <pirop> => "n_add"
        [0] => PMC 'PAST::Val'  {
            <value> => 3
        }
        [1] => PMC 'PAST::Val'  {
            <value> => 4
        }
    }
}
Copyright © 2009
http://www.pmichaud.com/2009/pres/