Loading page…
A compiler component that converts raw source text into a stream of tokens (keywords, identifiers, literals, operators).
Also called a scanner or tokenizer, the lexer is the first compiler phase. Production lexers in Clang and V8 are hand-written loops applying maximal munch; generated alternatives come from tools like flex.