ELisp Interpretation #2344
-
Hy! I'm working on a project into which I'd like to interpret ELisp code, and I'm thinking to use Hy as the base. How feasible would this be, particularly in changing the behavior of Hy's Symbol to mimic that of Emacs', as well as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm afraid you have your work cut out for you. The semantic differences between Emacs Lisp and Hy run deep, and a lot of the details of Hy's implementation reflect Python semantics and Python's |
Beta Was this translation helpful? Give feedback.
I'm afraid you have your work cut out for you. The semantic differences between Emacs Lisp and Hy run deep, and a lot of the details of Hy's implementation reflect Python semantics and Python's
ast
structure. You may have better luck writing an Emacs Lisp interpreter from scratch (perhaps in Hy) than using Hy's codebase. Remember that Hy's code is concerned only with translating Hy into Pythonast
objects rather than full-blow interpretation, which is probably what you'd need to do here.