X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=syntax.cf;h=8bb36219c11d1b7daeeeeaf9065a534d37f8345b;hp=dc7e65960cacd24d1430ed90c02bf9ba07c69c8a;hb=9597d94cbb1b328c27883c8421b1fef3211fb698;hpb=33370917adde77f98b0955843b3222d9838a3fe8 diff --git a/syntax.cf b/syntax.cf index dc7e659..8bb3621 100644 --- a/syntax.cf +++ b/syntax.cf @@ -22,7 +22,7 @@ op1. Exp1 ::= Exp1 Op1 Exp2 ; define op1 e1 o e2 = OpExp e1 o e2 ; op2. Exp2 ::= Exp2 Op2 Exp3 ; define op2 e1 o e2 = OpExp e1 o e2 ; -postIncr. Exp3 ::= Ident "++" ; +postIncr. Exp3 ::= Ident "++" ; define postIncr i = EPost i Plus ; postDecr. Exp3 ::= Ident "--" ; define postDecr i = EPost i Minus ;