You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean up and consolidate the lexical specification. #567
The UTF8BOM/SHEBANG definition is floating in a chapter outside of the Lexical chapter. I think it is relevant to lexing, so it should be somehow incorporated in the Lexical chapter. (Not sure how, probably need to rearrange things a little.) Input format #1459
The "input format" subchapter is almost completely useless, and could be moved somewhere else. Input format #1459
There should be a note about token ambiguity (this can be relatively brief, but should be mentioned). This depends on the lexer/parser implementation. rustc works by splitting tokens into smaller parts. The proc_macro parser works by only issuing the smaller tokens, and using the Spacing to determine if they should be combined later on. The tokens that I'm aware of that cause this issue are:
I'm going to close as I have split the remaining points to #1982 and #1983.
There's perhaps a large issue of whether or not there should be a separate lexical definition at all, and instead use a scannerless approach to defining the language. However, that is beyond the scope here.
Activity
ehuss commentedon Aug 26, 2025
I'm going to close as I have split the remaining points to #1982 and #1983.
There's perhaps a large issue of whether or not there should be a separate lexical definition at all, and instead use a scannerless approach to defining the language. However, that is beyond the scope here.