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.
beautiful-racket/beautiful-racket-demo/algebra-demo/grammar.rkt

6 lines
143 B
Racket

#lang brag
top : (fun | app)*
fun : /"fun" ID /"(" ID [/"," ID] /")" /"=" expr
5 years ago
expr : ID /"+" ID | app
app : ID /"(" (ID | INT) [/"," ID] /")"