Logiweb(TM)

Logiweb aspects of val2term ( " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of val2term ( asterisk , asterisk ) as "val2term ( "! , "! )" end define

The "value" aspect

define value of val2term ( t , v ) as norm { t is val : { v is val : if v = true then make-root ( t , quote true end quote ) :: true else if v = false then make-root ( t , quote false end quote ) :: true else if v pairp then make-root ( t , quote val2term ( t , v head ) unquote :: { val2term ( t , v tail ) unquote } end quote ) :: { val2term ( t , v head ) :: { val2term ( t , v tail ) :: true } } else if v mapp then make-root ( t , quote map ( --- ) end quote ) :: { { make-root ( t , quote --- end quote ) :: true } :: true } else if v objectp then make-root ( t , quote object ( val2term ( t , destruct ( v ) ) unquote ) end quote ) :: { val2term ( t , destruct ( v ) ) :: true } else if v = 0 then make-root ( t , quote 0 end quote ) :: true else if v < 0 then make-root ( t , quote - { card2term ( t , - v ) unquote } end quote ) :: { card2term ( t , - v ) :: true } else card2term ( t , v ) } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:11:58.175987 = MJD-54293.TAI:20:12:31.175987 = LGT-4690987951175987e-6