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
refactor(selfhost): extract shared scan.rss prelude; dedupe tokenizer across lexer/parser/check
Extract the triplicated tokenizer/scanner and the byte-identical
declaration-scanning helpers into selfhost/scan.rss, a shared prelude the
test harness prepends to each tool at compile time (single-file VM has no
module import). Unify on one Tok struct (with text field) and a single
tokenize(source) -> fresh List<Tok> (validates SH-019). The lexer driver
now runs tokenize and prints the canonical dump; parser and checker keep
only their unique logic. Net 1143-line reduction; lexer/parser/checker
parity all 551/551, full lib suite 280 passing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments