You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
192 B
Racket
8 lines
192 B
Racket
7 years ago
|
#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
|