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

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

E-mail: