Logiweb(TM)

Logiweb aspects of unieval ( " , " , " ) in pyk

Up Help

The "pyk" aspect

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

The "value" aspect

define value of unieval ( t , s , c ) as norm { t is val : { s is val : { c is val : LET t unitac-rhs ( c ) BE { asterisk IN LET asterisk BE { d IN if d then LET lookup ( t , s [[ hook-pre ]] , true ) BE { asterisk IN LET { if asterisk atom then asterisk else { asterisk head } } :: { { if asterisk atom then asterisk else { asterisk tail } } :: true } BE { asterisk prime IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET asterisk BE { r IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET { if asterisk atom then asterisk else { asterisk head } } :: { { if asterisk atom then asterisk else { asterisk tail } } :: true } BE { asterisk prime prime IN LET asterisk prime prime head BE { asterisk IN LET asterisk prime prime tail BE { asterisk prime prime IN LET asterisk BE { a IN LET asterisk prime prime head BE { asterisk IN LET asterisk prime prime tail BE { asterisk prime prime IN if .not. a then s [[ hook-arg -> a ]] [[ hook-res -> r ]] else error ( t , diag ( "Unknown unitac operator in root of argumentation:" ) disp ( t ) end diagnose ) } } } } } } } } } } } } } else LET { eval ( d , true , c ) apply { { t :: { s :: { c :: <<>> } } } maptag } } untag catch BE { asterisk IN LET { if asterisk atom then asterisk else { asterisk head } } :: { { if asterisk atom then asterisk else { asterisk tail } } :: true } BE { asterisk prime IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET asterisk BE { e IN LET asterisk prime head BE { asterisk IN LET asterisk prime tail BE { asterisk prime IN LET asterisk BE { s IN if .not. e then s else if .not. s then s raise else error ( t , diag ( "Exception raised by the unitac aspect of:" ) disp ( t ) end diagnose ) } } } } } } } } } } } } } 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