Python to RPN converter
|
06-28-2018, 04:07 PM
(This post was last modified: 06-28-2018 05:19 PM by Thomas Klemm.)
Post: #37
|
|||
|
|||
RE: Python to RPN converter
Just watched the talk Hy: A Lisp that transforms itself into the Python AST that you mentioned in the slides.
This made me wonder if I could translate hy to FOCAL as well? Let's give it a try with a function that calculates the area of circle given the radius r: Code: (defn circle [r] Code: hy 0.14.0+196.g4de18d3 using CPython(default) 2.7.10 on Darwin How cool is that? Since hy produces an AST I assume it would be easy to provide a frontend for your application. For those of you who want to try hy. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)