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

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