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

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

E-mail: