Changeset 1374 for fmts/trunk/p


Ignore:
Timestamp:
Mar 8, 2012, 7:01:36 PM (13 years ago)
Author:
George Lilly
Message:

working on pred and objects queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XGET1.m

    r1373 r1374  
    171171 s itbl("I000",ii)="d zip(.tmprtn,zt,zi)"
    172172 s ii=$s(zw="S":"OSP",zw="P":"OPS",zw="O":"OSP") ; obj constraint
    173  s ix=$s(zw="O":"s tmprtn(zobj)=""""",1:"d zip1(.tmprtn,zt,zi,zobj)")
     173 s ix=$s(zw="O":"d just(zobj)",1:"d zip1(.tmprtn,zt,zi,zobj)")
    174174 s itbl("I001",ii)=ix
    175  s itbl("I010","PSO")="d zip1(.tmprtn,zt,zi,zpred)"
    176  s itbl("I011","POS")="d zip2(.tmprtn,zt,zi,zpred,zobj)"
     175 s ii=$s(zw="S":"PSO",zw="P":"POS",zw="O":"OPS") ; pred constraint
     176 s ix=$s(zw="O":"d just(zpred)",1:"d zip1(.tmprtn,zt,zi,zpred)")
     177 s itbl("I010","PSO")=ix
     178 s ii=$s(zw="S":"POS",zw="P":"OPS",zw="O":"OSP") ; pred + obj constraint
     179 s ix=$s(zw="S":"d zip2(.tmprtn,zt,zi,zpred,zobj)",zw="P":"d just(zpred)",zw="O":"d just(zobj)",1:"d just(zobj)")
     180 s itbl("I011","POS")=ix
    177181 s itbl("I100","SPO")="d zip(.tmprtn,zt,zi)"
    178182 s itbl("I101","OSP")="d zip1(.tmprtn,zt,zi,zobj)"
     
    186190 k listrtn
    187191 d strings(.listrtn,"tmprtn") ; convert pointer to strings
     192 q
     193 ;
     194just(zin) ; add one element to tmprtn
     195 s tmprtn(zin)=""
    188196 q
    189197 ;
Note: See TracChangeset for help on using the changeset viewer.