diff backendutils.rhope @ 21:e9272f7ebd26

Limited compilation from dataflow graph to C backend
author Mike Pavone <pavone@retrodev.com>
date Tue, 23 Jun 2009 01:16:04 -0400
parents ea991f95ae1f
children 914ad38f9b59
line wrap: on
line diff
--- a/backendutils.rhope	Wed May 27 21:42:37 2009 -0400
+++ b/backendutils.rhope	Tue Jun 23 01:16:04 2009 -0400
@@ -75,6 +75,22 @@
 	out <- [func]Result Reference[[result]Output Num>>]
 }
 
+Blueprint OrValue
+{
+	Left
+	Right
+}
+
+OrValue[left,right:out]
+{
+	out <- [[Build["OrValue"]]Left <<[left]]Right <<[right]
+}
+
+Make Op@OrValue[orval,func:out]
+{
+	out <- [func]If Null Else[[[func]Left >>]Make Op[func], [[func]Right >>]Make Op[func]]
+}
+
 Blueprint NotCond
 {
 	Condition