APL Parrot Target Practice #12

APL grammar (languages/APL/lib/APLGrammar.pg)

grammar APL::Grammar;

token statement_list { ^<statement> [ \n <statement> ]* }

token statement { <expression> [ \s*? $$ | <syntax_error> ] }

token expression { 
    | <target> ← <expression>
    | <monadic_identifier> <expression>
    | <subexpression> [ <dyadic_identifier> <expression> ]?
}
Copyright © 2006 Will Coleda & Patrick Michaud