3 ms·
> Even though (let (x 5) (* x x)) is wrong, it parses. That's not the definition of syntax. If you're implementing a compiler, then you might use "syntax" as
by munch117 4y ago
> Even though (let (x 5) (* x x)) is wrong, it parses.
That's not the definition of syntax.
If you're implementing a compiler, then you might use "syntax" as a shorthand for those parts of the syntax that are processed in a particular "syntax checking" stage of the compiler. But that's not all it is.
> From looking at the use, I don't know whether it is valid shape for f
That, on the other hand, is close to a definition of syntax: The rules for what has a valid shape and what doesn't.
- deleted 4y ago[deleted]