Mercurial > repos > rhope
comparison 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 |
comparison
equal
deleted
inserted
replaced
135:18a4403fe576 | 136:fc3815b7462f |
---|---|
23 out <- [Build[AddRef()]]Value <<[value] | 23 out <- [Build[AddRef()]]Value <<[value] |
24 } | 24 } |
25 | 25 |
26 Make Op@AddRef[addref,func:out] | 26 Make Op@AddRef[addref,func:out] |
27 { | 27 { |
28 //TODO: Make me work with other backends | 28 out <- [func]Make AddRef Op[[addref]Value >>] |
29 out <- [["add_ref((object *)"]Append[ [[addref]Value >>]Make Op[func] ]]Append[")"] | |
30 } | 29 } |
31 | 30 |
32 Strip Addref@AddRef[op:out] | 31 Strip Addref@AddRef[op:out] |
33 { | 32 { |
34 out <- [[op]Value >>]Strip Addref | 33 out <- [[op]Value >>]Strip Addref |