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

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

E-mail: