Open acl33 opened 3 years ago
That's not a valid lam
. There should only be three components to a lam
:
lam
In your example (add x 1)
is the body. (Arguably the presence of hello
and world
should cause a parse failure.)
Yes, I think a parse failure would be helpful. This hit me in an example when the first parsed successfully "by accident"...
So parsing ":" and "Float" as 'Var's is one thing, but also, what has happened to the "foo"? Here's a simpler example of the latter:
where the result is plausible but the
hello world
has disappeared entirely.