churf/Grammar.cf
2023-01-20 14:12:04 +01:00

15 lines
242 B
CFEngine3

Program. Program ::= "main" "=" Exp ;
EId. Exp3 ::= Ident ;
EInt. Exp3 ::= Integer ;
EApp. Exp2 ::= Exp2 Exp3 ;
EAdd. Exp1 ::= Exp1 "+" Exp2 ;
EAbs. Exp ::= "\\" Ident "->" Exp ;
coercions Exp 3 ;
comment "--" ;
comment "{-" "-}" ;