Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 388 Bytes

newgrammar.md

File metadata and controls

14 lines (7 loc) · 388 Bytes

Our New Let Lang Grammar Rules

factor → tuple ( [(id | num | factor) {, (id | num | factor)}] )

expr → let [(id) {, (id)}] := [(expr) {, (expr)}] in expr

global → global [(id) {, (id)}] := [(expr) {, (expr)}]

comment → # [^#] #

fun → fun id := lexpr

lexpr → ( lambda id => (expr | lexpr) )