2 ms·
> One could write the same code in python/javascript with using lists and strings and recursion in a similar way, no? Then you're implementing a Lisp (just one
by pflanze 8y ago
> One could write the same code in python/javascript with using lists and strings and recursion in a similar way, no?
Then you're implementing a Lisp (just one with square instead of round brackets, and commas between list elements) within Python/JS.
Edit: to explain, you also need to either translate the result of the derivation back into Python/JS code (via stringification and eval or perhaps AST manipulation--i.e. a compiler of the list structures (Lisp) to Python/JS), or write an interpreter for the list structures (i.e. Lisp interpreter).