The lexer is responsible for turning a string of characters into a stream of
tokens. The tokens are then used by the parser to build an abstract syntax
tree.
The lexer handles parsing of string literals, digraphs (e.g. <=), and numbers.
It also handles detecting keywords and identifiers.
The lexer is responsible for turning a string of characters into a stream of tokens. The tokens are then used by the parser to build an abstract syntax tree.
The lexer handles parsing of string literals, digraphs (e.g.
<=
), and numbers. It also handles detecting keywords and identifiers.