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

I was mostly talking about the semantic analysis pass after the parser pass. Type checking, name binding, etc.

You are correct that the lexer pass allows you to expand a language despite the use of a context-free grammar in the parser. Significant whitespace lexed as indent/dedent tokens is a common example.



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: