The parser for Monkey's is definitely more challenging than the lexer.
Proof being I had to write a macro with macro_rules! - first time in two years or so of Rust development.
It would have not been needed if we had enum variant types... https://github.com/rust-lang/rfcs/pull/2593 …

-
-
Ugh, I had to do something similar in a streaming parser, although my solution to that was to use a macro like that to define methods for each of the patterns so the only thing the macro was used for was the method definitions.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at