Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CL & EL identifiers can start with digits #120

Open
Devon7 opened this issue Jan 9, 2021 · 0 comments
Open

CL & EL identifiers can start with digits #120

Devon7 opened this issue Jan 9, 2021 · 0 comments

Comments

@Devon7
Copy link

Devon7 commented Jan 9, 2021

Common-Lisp and Emacs-Lisp identifiers can start with digits, e.g., 2pi, !, { and } are all valid identifiers. ?, [ and ] are valid identifiers in Common-Lisp. Emacs-Lisp identifiers cannot start with ? and cannot contain [ or ]. The rare, seldom seen #?, #!, #[, #], #{ and #} reader macros reserved for Common-Lisp users are far too obscure to mention.
Given that the https://hyperpolyglot.org/lisp.html identifier info is at least half false,
it might be wise to check the other entries as well.
http://www.lispworks.com/documentation/lw50/CLHS/Body/02_cd.htm
2.3.4 Symbols as Tokens
Any token that is not a potential number, does not contain a package marker, and does not consist entirely of dots will always be interpreted as a symbol.
2.3.1.1 Potential Numbers as Tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant