Re:Crafting Interpreters
by _old_dude_ on Tuesday July 10, 2018 @06:07AM
(#17496750)
There is no pattern matching in Java (yet).
If you do the whole process in one pass like in C you can use the parser evaluation but even a simple feature like lambdas requires more than one pass.
So either you use a Visitor or you develop pattern matching in your language and bootstrap it rapidly to be able to use you language to write the backend of your language.
If you do the whole process in one pass like in C you can use the parser evaluation but even a simple feature like lambdas requires more than one pass.
So either you use a Visitor or you develop pattern matching in your language and bootstrap it rapidly to be able to use you language to write the backend of your language.