2 ms·
This makes me think. I know the ast module is an add-on and not at the core of the interpreter implementation. Has there been any attempts at building a interpr
by aangjie 15y ago
This makes me think. I know the ast module is an add-on and not at the core of the interpreter implementation. Has there been any attempts at building a interpreter that does the same(Read, eval,print, loop over data structures and not strings)?? It would be hard i guess, but interesting right?
- xyzzyz 15y agoAll interpreters do it on some level, they just don't expose this functionality to user. As soon as you want to expose it to user in a non cumbersome way, you realize that the thing that stands in your way is the syntax of your language -- converting from textual and structural representation back and forth does not look like the way to go. You need to get rid of one of them for it to make sense. But if you get rid of textual representation, you'll just get another Lisp.