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

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

E-mail: