4 ms·
Hence: languages with a lexer pass followed by a parser pass.
by TheLoneWolfling 11y ago
Hence: languages with a lexer pass followed by a parser pass.
- qznc 11y agoI 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.