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

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

E-mail: