DEV Community

Discussion on: how to make a parser?

Collapse
 
dnbln profile image
Dinu Blanovschi

tokenizing, then lexing, then parsing

Then, lexing will take that token stream and use this information and the rules of your language to yield an abstract syntax tree.

Note that tokenizing = lexing = getting a token stream from the input text, while parsing refers to building up the AST.