DEV Community

An expression parser for MiniScript

JoeStrout on February 21, 2024

Last week, we talked about the Pratt parsing algorithm. Prior to learning about that, I had always written recursive-descent parsers, including on...
Collapse
 
sebnozzi profile image
Sebastian Nozzi

Very nice!

Question: can you pre-defined (populate) variables with a specific value before evaluating an expression?

Collapse
 
joestrout profile image
JoeStrout

Absolutely! Just stuff things into vars map.