Re:How to implement a programming language in JavaScript
by sebcat on Wednesday June 29, 2016 @01:25AM
(#11999674)
Use of DSLs and tools like flex and bison makes the implementation a whole lot more reliable (but only if they're used, and some commonly run languages have a very implementation-specific grammar).
consider:
http://dinosaur.compilertools.net/bison/bison_5.html#SEC27