diff testc.rhope @ 19:90c20dc3f4e5

Initial work on compiling dataflow graphs to a backend
author Mike Pavone <pavone@retrodev.com>
date Wed, 27 May 2009 21:29:15 +0000
parents ea991f95ae1f
children
line wrap: on
line diff
--- a/testc.rhope	Wed May 27 04:49:32 2009 -0400
+++ b/testc.rhope	Wed May 27 21:29:15 2009 +0000
@@ -2,7 +2,8 @@
 
 Main[]
 {
-	base <- [[[[[[C Function["Fib",("n"),("out"),""]
+	prog <- C Program[]
+	base <- [[[[[[[prog]Create Function["Fib",("n"),("out"),""]
 		]Allocate Var["work1", "Any Type"]
 		]Allocate Var["work2", "Any Type"]
 		]Null["out"]
@@ -38,13 +39,8 @@
 		]Do If[Result[1], stream2]
 		]Release["n"]
 	{Print["func done"] }
+
+	Print[[[prog]Store Function[func]]Text]
 		
-	Print[[func]Definitions]
-	{
-	Print[[func]Text] }
 }
 
-Foo[]
-{
-}
-