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.

42 lines
547 B
Plaintext

4 months ago
Function Declaration Test
======
let add a b = a + b
let add1 a = add a 1
======
(file
(statement
(decl
(ident: "add")
(ident: "a")
(ident: "b")
(expr
(infix_expr
(ident: "a")
(operator: "+")
4 months ago
(ident: "b")
)
)
)
)
(statement
(decl
(ident: "add1")
(ident: "a")
(expr
(call_expr
(ident: "add")
(ident: "a")
(literal
(integer: "1")
)
)
)
)
)
(EOI: "")
)