On Dec 30, 2015, at 12:58 PM, Christopher Allan Webber < address@hidden> wrote:
Matt Wette writesThe purpose of the tree-il conversion is to support “,L <langauge>” at the guile prompt. And the tree-il code is done for _javascript_ and a simple calculator, not C. I just tried the _javascript_ and it is not working, but here is a small demo with the simple calculator. The calc files (parser, compiler and spec) are included below.
scheme@(guile-user)> ,L calc Happy hacking with calc! To switch back, type `,L scheme'. calc@(guile-user)> a = 3 + 4 calc@(guile-user)> ,L scheme Happy hacking with Scheme! To switch back, type `,L calc'. scheme@(guile-user)> a $1 = 7
That's really interesting. Do you have more specific applications inmind beyond this?
Well. I wanted to go through the exercise of writing to the tree-il, but have no real goals as of yet.
Matt
|