Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At the parser-level, though; not down in the lexer. I intern unique user-defined strings (just with a hashcons or whatever the cool kids call it, these days). That defers the determination of correctness of UTF-kness to "someone else".


Figuring out whether a character should become part of a number or a name, for instance, is typical lexer stuff though. For that you have to classify it.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: