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

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

E-mail: