Not Quite Perl Not Quite Perl - A lightweight Perl 6 #19

Parse tree (--target=parse)

$ ./nqp Abc.pm --target=parse
> 3+4
"parse" => PMC 'Regex;Match' => "3+4\n" @ 0 {
    <expr> => PMC 'Regex;Match' => "3+4\n" @ 0 {
        <integer> => ResizablePMCArray (size:2) [
            PMC 'Regex;Match' => "3" @ 0,
            PMC 'Regex;Match' => "4" @ 2
        ]
        <addop> => PMC 'Regex;Match' => "+" @ 1
    }
}
Copyright © 2010
http://www.pmichaud.com/2010/pres/