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

Compiler with operator precedence parsing

class ABC::Actions is HLL::Actions {
    method TOP($/) {
        make PAST::Block.new( $<EXPR>.ast );
    }

    method term:sym<value>($/) {
        make $<integer>.ast;
    }

    method circumfix:sym<( )>($/) {
        make $<EXPR>.ast;
    }
}
Copyright © 2010
http://www.pmichaud.com/2010/pres/