The conversation between human and AI assistant.
How do I write a compiler?
Okay. Once I have the language defined, what's next?
The next step is to write a lexer and parser to convert the source code into an abstract syntax tree (AST). The lexer breaks the source code into a stream of tokens, and the parser uses the production rules to build the AST.