Re:Syntax across languages
by aidenn0 on Monday February 02, 2015 @01:32AM
(#8982980)
I just skimmed this, but a large fraction of their information was just wrong for common-lisp, even if you assume a standard readtable.
One example: they state "anything without a space and is not a number" for identifiers; it's hard for that to be more wrong.
The actual rule is: a single token that could either be a symbol or a number should start with any non-macro character, and can be made up of any combination of non-macro and non-terminating macro characters, as well as any escaped characters. For example:
One example: they state "anything without a space and is not a number" for identifiers; it's hard for that to be more wrong.
The actual rule is: a single token that could either be a symbol or a number should start with any non-macro character, and can be made up of any combination of non-macro and non-terminating macro characters, as well as any escaped characters. For example:
Is a valid symbol.Now that we have a token that is either a symbol or a number, we need to distinguish which; that's slightly more complicated, so I'll link the spec (which includes an EBNF): http://www.lispworks.com/documentation/HyperSpec/Body/02_ca....