3 ms·
> Just an auto generated parser and interpreter I guess you mean one of the parser-generators or PEG libraries to auto-generate the parser. I'm not aware of t
by spinningslate 3y ago
> Just an auto generated parser and interpreter
I guess you mean one of the parser-generators or PEG libraries to auto-generate the parser. I'm not aware of tools for auto-generating interpreters. Can you point to one/some if there are? Thanks.
- UncleEntity 3y agoThere are methods to generate an interpreter but AFAICT there are no real implementations. Seems to be one of those pure research fields. https://github.com/sillycross/PochiVM https://github.com/sillycross/PochiVM is the closest I've seen to an actual implementation but it looks mostly abandoned. And I'm talking about generators on the same level as flex/bison and not something like pypy where they (used to?) use abstract interpretation/partial evaluation as you're really just transforming a handwritten interpreter with all the hard work that entails.
- Yoric 3y agoThere are tools that let you basically write an interpreter and a compiler at the same time, so perhaps it's that?