This repository was archived by the owner on Apr 8, 2024. It is now read-only.
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
Lexical specification? #3
Open
Description
Should the group produce a separate lexical specification?
I think it would be useful, but I have no idea what it would look like.
There are some complexities like token splitting (<<
to <
<
) that rustc performs that I don't know how that would be expressed in a formal grammar. Also, weak keywords. AIUI, raw strings also introduce complexities.
I would like to hear if others think this would be useful, how it would work, what the complications might be, etc.
Also relevant: https://internals.rust-lang.org/t/pre-pre-rfc-canonical-lexer-specification/4099