v6.3-exception
Matthew Butterick 7 years ago
parent 8cc09d217c
commit b13ae90903

@ -1,8 +1,9 @@
#lang brag #lang brag
top : func-def{2} func-app top : (func-def | func-app)*
func-def : /"fun" ID /"(" argids /")" /"=" expr func-def : /"fun" var /"(" boundvars /")" /"=" expr
/argids : ID [/"," ID] /boundvars : var [/"," var]
expr : ID "+" ID | func-app expr : var "+" var | func-app
func-app : ID /"(" arg [/"," arg] /")" func-app : var /"(" arg [/"," arg] /")"
@arg : ID | INT @var : ID
@arg : var | INT
Loading…
Cancel
Save