Mercurial > repos > rhope
view boolean.rhope @ 81:dbe95bfec970
Very basic file access is now working; however, there's a bug involving assigning a literal to a named pipe inside a conditional block that needs fixing
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 22 Jul 2010 05:39:08 +0000 |
parents | 38d9cd036d49 |
children | ac5c2d78663f |
line wrap: on
line source
Generate Boolean Methods[backend:out] { func,inval <- [[[[[backend]Create Function["If@Boolean",("in"),("yes","no"),"rhope"] ]Set Input Type[Type Instance["Boolean"], 0] ]Set Output Type[Type Instance["Boolean"], 0] ]Set Output Type[Type Instance["Boolean"], 1] ]Read Field["in", "Val"] ifyes <- [[[func]Instruction Stream ]Move["in","yes"] ]Set Null["no"] ifno <- [[[func]Instruction Stream ]Move["in","no"] ]Set Null["yes"] ffunc <- [[func]Do If[inval, ifyes] ]Do If[NotCond[inval], ifno] out <- [backend]Store Function[ffunc] }