Comment

Comment by agalunar

> When AST is built, it is validated to make sure it makes sense (that’s called lexing) and converted it to the bytecode.

I've never heard "lexing" used this way, and I believe it's simply incorrect. Lexing (tokenizing) precedes parsing (parse tree and then syntax tree construction). It isn't syntax tree validation.

Or so I thought. Are there other examples (besides this article) of "lexing" also being used to mean something else?

parent agalunar 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton