Mercurial > repos > rhope
diff backendutils_c.rhope @ 136:fc3815b7462f
Javascript backend now produces working code for some simple examples, still more of the standard lib that needs to be ported.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 14 Nov 2010 23:07:55 -0500 |
parents | 18a4403fe576 |
children | a68e6828d896 |
line wrap: on
line diff
--- a/backendutils_c.rhope Sun Nov 14 03:09:49 2010 -0500 +++ b/backendutils_c.rhope Sun Nov 14 23:07:55 2010 -0500 @@ -25,8 +25,7 @@ Make Op@AddRef[addref,func:out] { - //TODO: Make me work with other backends - out <- [["add_ref((object *)"]Append[ [[addref]Value >>]Make Op[func] ]]Append[")"] + out <- [func]Make AddRef Op[[addref]Value >>] } Strip Addref@AddRef[op:out]