Annotation of parser3/src/www/htdocs/index.html, revision 1.396

1.395     parser      1: @main[]
^imageresize[]
                      2: #^ifassignhash[]
#^tintdefault[]
#$response:status[404]
1.390     parser      3: #^ifpasshash[]
1.387     parser      4: #^movedir[]
                      5: #^replace[]
1.386     parser      6: #^set[]
1.385     parser      7: #^hash[]<hr>
1.384     parser      8: #$t[^methresult[]] ->$t
1.382     parser      9: #^terror[]
1.378     parser     10: #^ssave[]
1.377     parser     11: #^calendar[]
1.376     parser     12: #^thash[]
1.373     parser     13: #^tdef[]
1.375     parser     14: #^ford[]
1.371     parser     15: #^tif[]
1.383     parser     16: #^image[]
1.369     parser     17: #^mail2[]
1.367     parser     18: #^cookie[]
1.365     parser     19: #^response[]
1.364     parser     20: #^regexp2[]
                     21: #^ttablerem[]
                     22: #^pcre[]
                     23: #^regexp[]<hr>
                     24: #^mail[]
                     25: #^exec[]
                     26: #^fori[]
                     27: #^tconnect[]
1.383     parser     28: #^xslt[]
1.395     parser     29: #^xml[]
1.364     parser     30: #^header[]
                     31: OK
1.395     parser     32: 
                     33: @imageresize[]
                     34: $k(2)
                     35: $pict[^image::create(400*$k;200*$k)]
                     36: $pict.line-width(2)
                     37: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                     38: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                     39: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                     40: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                     41: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
                     42: #$response:body[^pict.gif[]]
                     43: 
                     44: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.396   ! parser     45: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
        !            46: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height)
1.395     parser     47: 
                     48: $response:body[^small.gif[]]
                     49: 
1.388     parser     50: 
                     51: @tintdefault[]
                     52: #$abc[abc]
                     53: $abc[33]
                     54: ^abc.int[z]
                     55: #^abc.int(123)
1.390     parser     56: 
                     57: @ifassignhash[]
                     58: $h[^if(1){$.a(1);$.a(2)}]
                     59: $h.a
1.387     parser     60: 
                     61: @ifpasshash[]
                     62: $a[$.e[a]]
                     63: $b[$.e[b]]
1.389     parser     64: ^ifpasshashdest[^if(1){$a;$b}]
1.387     parser     65: #$x[^if(1){$a}{$b}]
                     66: #^ifpasshashdest[$x]
                     67: 
                     68: @ifpasshashdest[p]
                     69: $p.e
                     70: 
                     71: @movedir[]
                     72: ^file:move[a;deeper/a]
1.386     parser     73: 
                     74: @replace[]
                     75: $a[12^;3]
                     76: ^a.replace[^table::set{from    to
                     77: 2^;    !
                     78: }]
                     79: 
1.385     parser     80: 
                     81: @set[]
                     82: ^setdata[]
                     83: ^a.add[$b]
                     84: add:$a.3<br>
                     85: 
                     86: ^setdata[]
                     87: ^a.sub[$b]
                     88: sub2:$a.2<br>
                     89: sub1:$a.1<br>
                     90: 
                     91: ^setdata[]
                     92: $c[^a.union[$b]]
                     93: union3:$c.3<br>
                     94: union2:$c.2<br>
                     95: 
                     96: ^setdata[]
                     97: $c[^a.intersection[$b]]
                     98: intersection3:$c.3<br>
                     99: intersection2:$c.2<br>
                    100: 
                    101: ^setdata[]
                    102: intersects:^if(^a.intersects[$b]){y;n}<br>
                    103: intersects2:^if(^a.intersects[ ]){y;n}<br>
                    104: 
                    105: 
                    106: <hr>
                    107: 
                    108: @setdata[]
                    109: $a[$.1[a1] $.2[a2]]
                    110: $b[        $.2[b2] $.3[b3]]
                    111: 
1.383     parser    112: 
1.384     parser    113: @hash[]
                    114: $h[^hash::create[$._default[123]]]
                    115: $h.paf[not kretin]
                    116: $h.paf<br>
                    117: =$h.that=<br>
                    118: 
                    119: @methresult[]
                    120: $result[^table::set{1}]
1.377     parser    121: 
1.381     parser    122: @terror[]
                    123: ^error[method z must be called with z]
                    124: 
1.380     parser    125: @syntax1[]
                    126: #^a[^b]
                    127: 
                    128: @syntax2[]
1.381     parser    129: #^a[
1.379     parser    130: 
1.377     parser    131: @ssave[]
                    132: $abc[abc]
                    133: ^abc.save[abc]
1.376     parser    134: 
                    135: @calendar[]
                    136: 2001;11:<br>
                    137: $week_days[^date:calendar[rus](2001;11)]
                    138: <pre>
                    139: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday;&nbsp^;&nbsp^;} }<br>}
                    140: </pre>
1.372     parser    141: 
1.375     parser    142: @thash[]
                    143: $table[^table::set{id  name    age
                    144: 1      paf     278
                    145: 2      пиф     234
                    146: }]
                    147: $hash[^table.hash[id;^table::set[nameless]{id
                    148: name}]]
                    149: $hash.2.id $hash.2.name $hash.2.age
                    150: 
1.372     parser    151: @tdef[]
                    152: $s[0]
                    153: if 0=^if($s){}{n}<br>
                    154: if def 0=^if(def $s){y}{}<br>
                    155: <hr>
1.371     parser    156: 
                    157: @ford[]
1.374     parser    158: ^for[i](0;5){$i}{($i)}
1.368     parser    159: 
1.370     parser    160: @tif[]
                    161: ^if[def]{y;n}
                    162: 
1.368     parser    163: @image[]
                    164: $pict[^image::create(400;200)]
1.379     parser    165: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    166: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                    167: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    168: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                    169: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368     parser    170: $response:body[^pict.gif[]]
                    171: 
                    172: 
1.366     parser    173: 
1.369     parser    174: @mail2[]
1.367     parser    175: ^mail:send[
1.369     parser    176:        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    177:        $.from[Александр Петросян <paf@design.ru>]
1.367     parser    178:        $.to[Александр Петросян <paf@design.ru>]
1.369     parser    179:        $.subject[проверка]
                    180:        $.body[проверка]
1.367     parser    181: ]
                    182: 
1.366     parser    183: @cookie[]
1.367     parser    184: $env:HTTP_COOKIE<br>
                    185: 
                    186: #$cookie:переменная[test тест ТЕСТ2]
                    187: =$cookie:переменная=<br>
                    188: #$cookie:переменная2[test тест ТЕСТ3]
                    189: =$cookie:переменная2=<br>
1.365     parser    190: 
                    191: @response[]
                    192: #^if($form:reload){
                    193:        $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
                    194: #}
1.364     parser    195: 
                    196: @xslt[]
                    197: ^xdata[]
1.375     parser    198: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.364     parser    199: 
                    200: @regexp2[]
                    201: $s[  select]
                    202: $s[^s.match[^^\s*][]{!}]
                    203: $s
                    204: 
                    205: @header[]
                    206: $response:refresh[
                    207:        $.value[0]
                    208:        $.url[http://design.ru?a=^taint[123]]
                    209: ]
                    210: 
                    211: @ttablerem[]
                    212: $table[^table::load[a.cfg]]
                    213: ^table.menu{$table.a}
                    214: 
                    215: @tconnect[]
                    216: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
                    217: $tables[^table::sql{show tables}]
                    218: #$cols[^tables.columns[]]
                    219: #$cols.column
                    220: ^tables.menu{
                    221:        $tables.[Tables_in_test]<br>
                    222: }
                    223: }
                    224: 
                    225: @pcre[]
                    226: $s[1 2]
                    227: ^s.match[\s;ig]{!}
                    228: #^s.match[\d;ig]{!}
                    229: 
                    230: 
                    231: @regexp[]
                    232: $s[abcАБВ]
                    233: ^if(^s.match[б][i]){y}{n}
                    234: 
                    235: @mail[]
                    236: #$ORIGINS(1)
                    237: ^mail:send[
                    238:        $.from[paf@design.ru]
                    239:        $.to[paf@design.ru]
                    240:        $.body[1
                    241:        
                    242:        2
                    243:        
                    244:        
                    245:                3]
                    246: ]
                    247: 
                    248: @exec[]
1.370     parser    249: $a[^file::exec[fc.exe;;a;b]]
1.364     parser    250: $a.status|$a.stderr<hr>
                    251: 
                    252: @fori[][i]
                    253: ^for[i](1;3){... =$i= ...}
                    254: 
                    255: @xdata[]
                    256: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
                    257: $xdoc[^xdoc::load[input.xml]]
                    258: 
                    259: @xml[]
                    260: ^xdata[]
                    261: 
                    262: ^show-xdoc2[$xdoc]<hr>
                    263: #^show-xnode1[$xdoc]<hr>
                    264: $people[^xdoc.select[*/man]]
                    265: #^show1[]
                    266: ^show-xnodes1[$people]<hr>
                    267: #^people.0.owner.hren[]
                    268: 
1.393     parser    269: ^show-xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
1.364     parser    270: 
                    271: by id:
                    272: ^show-xnode1[^xdoc.getElementById[1];0;1]
                    273: <hr>
                    274: 
                    275: @show1[array]
                    276: ^for[i](0;^array._count[]-1){
                    277:     $x[$array.$i]
                    278:        $x.firstChild.nodeValue: 
                    279:                $pattributes[$x.parentNode.attributes]
                    280:                ^if(^pattributes._count[]){
                    281:                        $pattributes.id.name=$pattributes.id.nodeValue
                    282:                }
                    283:        <br>
                    284: }
                    285:        
                    286: @show-xnodes1[array][i]
                    287: ^for[i](0;^array._count[]-1){
                    288:        ^show-xnode1[$array.$i;0;1]
                    289: }
                    290: 
                    291: @show-xnode1[x;level;single][l]
                    292: ^if(def $x){
                    293:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                    294:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    295:        &lt^;$x.nodeName
                    296:            $pairs[$x.attributes]
                    297:            ^if(def $pairs){
                    298:                $names[^pairs._keys[]]
                    299:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                    300:            }
                    301:            &gt^;
                    302:     }{
                    303:        [$x.nodeType]
                    304:     }
                    305:     
                    306:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                    307:     ^show-xnode1[$x.firstChild]($level+1)
                    308:     ^if(!$single){
                    309:            ^show-xnode1[$x.nextSibling]($level)
                    310:     }
                    311: 
                    312:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    313:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                    314:     }
                    315: }
                    316: 
                    317: @show-xdoc2[xdoc]
                    318: ^xdoc.save[save.xml;
                    319: #      $.encoding[windows-1251]
                    320:        $.method[xml]
                    321: ]
                    322: $file[^xdoc.file[
                    323: #      $.encoding[windows-1251]
                    324:        $.method[html]
                    325: ]]
                    326: ^file.save[text;save_file.html]
                    327: <pre>^taint[^xdoc.string[]]</pre>
                    328: #      $.encoding[windows-1251]
                    329: #      $.method[xml]
                    330: #]]

E-mail: