This repository was archived by the owner on Feb 4, 2025. It is now read-only.
The lexer should only return a span and a token-kind #384
Labels
enhancement
New feature or request
hard
Extra attention is needed
lexer
Issue dealing with parsing the lexical tokens of a program
technical-debt
Milestone
This is the traditional way to write a lexer, used by
yacc
,logos
, andclang
. The lexer identifies the boundaries of the token and the token kind and nothing else. This means for instance1000000000000000000000000
would not be a lex error, but instead a parse error (and I'd probably want to delay it even further into constant folding).This would make it significantly easier to switch to logos and support rust-lang/rust-bindgen#1762.
This requires a fairly significant refactor.
The text was updated successfully, but these errors were encountered: