The lexer is responsible for breaking down QASM source code into tokens
that can be consumed by the parser. It supports both OpenQASM 2.0 and 3.0
syntax, with version-specific lexers handling the differences in token types
and syntax rules.
The specific Lexer implementations can be found at:
Main lexer interface for tokenizing QASM code
The lexer is responsible for breaking down QASM source code into tokens that can be consumed by the parser. It supports both OpenQASM 2.0 and 3.0 syntax, with version-specific lexers handling the differences in token types and syntax rules.
The specific Lexer implementations can be found at:
Example: Token Flow
Example: Basic lexing workflow