4 ms·
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
by aidenn0 12y ago
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:
a\ b
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.htm http://www.lispworks.com/documentation/HyperSpec/Body/02_ca....