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

1.399     parser      1: @main[]
1.503   ! paf         2: $request:charset[windows-1251]
        !             3: $response:charset[windows-1251]
1.499     paf         4: #^treplace[]
1.500     paf         5: #^xslt2[]
1.497     paf         6: #^tcache2[]
1.489     paf         7: #$ORIGINS(1)
1.488     paf         8: #$t[^table::set{a b} ^table::set{c d}]
1.486     paf         9: #^ttaintuntaint[]
1.493     paf        10: #^tappend2[]
1.480     paf        11: #^badvsnprintf[]
1.479     paf        12: #^badoracequoting[]
1.477     paf        13: #^badconstructors[]
1.502     paf        14: #^xloadwrongtable[]
1.476     paf        15: #^xsetwrongtable[]
1.473     paf        16: #^if($form:test){y}{n}
1.472     paf        17: #^tablecolumnerror[]
                     18: #^roll[]
1.471     paf        19: #^cookie2[]
1.470     paf        20: #^tableset[]
1.469     paf        21: #^math:PI.format{%.30f}
1.462     paf        22: #^xchildren[]
                     23: #^thashforeach3[]
1.461     paf        24: #^thashforeach2[]
                     25: #^thashforeach[]
1.458     paf        26: #^thashdelete[]
1.456     paf        27: #^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
1.454     paf        28: #^tappend[]
1.453     paf        29: #^sappend[]
1.452     paf        30: #^eval(10\3)<br>
1.450     paf        31: #^tform[]
1.448     paf        32: #^formattest[]
1.447     paf        33: #^filelist[]
1.443     paf        34: #^connect[mysql://user:pass@host]{ }
1.431     paf        35: #^безнадёжна_попытка_поправить_непоправимое[]
1.493     paf        36: #^tcache[]
1.460     paf        37: #^thashfileexp[]
1.468     paf        38: #^tcounter[]
1.423     parser     39: #^tablehash[]
1.443     paf        40: #j^hashfile[]
1.417     parser     41: #^formclass[]
1.415     parser     42: #^hren[]
1.485     paf        43: #^domedit[]
1.475     paf        44: #^domxslt[]
1.402     parser     45: #^lsplit2[]
1.401     parser     46: #^faceesize[]
1.445     paf        47: #^imageresize[]
1.399     parser     48: #^ifassignhash[]
                     49: #^tintdefault[]
                     50: #$response:status[404]
1.390     parser     51: #^ifpasshash[]
1.387     parser     52: #^movedir[]
                     53: #^replace[]
1.416     parser     54: #^set[]
1.385     parser     55: #^hash[]<hr>
1.384     parser     56: #$t[^methresult[]] ->$t
1.382     parser     57: #^terror[]
1.378     parser     58: #^ssave[]
1.377     parser     59: #^calendar[]
1.376     parser     60: #^thash[]
1.373     parser     61: #^tdef[]
1.375     parser     62: #^ford[]
1.371     parser     63: #^tif[]
1.383     parser     64: #^image[]
1.369     parser     65: #^mail2[]
1.413     parser     66: #^cookie[]
1.365     parser     67: #^response[]
1.364     parser     68: #^regexp2[]
                     69: #^ttablerem[]
                     70: #^pcre[]
                     71: #^regexp[]<hr>
                     72: #^mail[]
                     73: #^exec[]
                     74: #^fori[]
1.468     paf        75: #^tconnect[]
1.503   ! paf        76: ^xslt[]
1.470     paf        77: #^xml[]
1.364     parser     78: #^header[]
1.477     paf        79: <hr>
1.364     parser     80: OK
1.497     paf        81: 
                     82: @treplace[]
                     83: $copy-paste-clean[^table::set{a b
                     84: .      _
                     85: ,      _
                     86: +      _
                     87: &      _
                     88: ?      _
                     89: =      _}]
                     90: 
1.498     paf        91: $cache_key[^taint[в.а,с+я]&был?тут=недавно.cache]
1.497     paf        92: # почему-то этот replace роняет апач в 500 ошибку :(
1.498     paf        93: #^cache_key.replace[$copy-paste-clean]
                     94: $test[abc]
                     95: ^test.save[$cache_key]saved<br>
                     96: $cache[^file:list[.;\.cache^$]]
                     97: ^file:delete[$cache_key]deleted($cache.name)<br>
                     98: 
1.497     paf        99: 
                    100: 
                    101: @xslt2[]
                    102: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    103: <document><block><p>hi</p></block></document>
                    104: }]
                    105: #^show-xdoc2[$xdoc]
                    106: ^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
                    107: <hr>
                    108: 
1.495     paf       109: 
1.496     paf       110: @tcache2[]
                    111: ^cache[$DB_HOME/keyключ](2){
                    112:        ^math:random(100)
                    113: }
1.485     paf       114: 
1.486     paf       115: @ttaintuntaint[]
                    116: <!-- некий панковский заголовок с буковкой C в круглых скобках -->^taint[html][
                    117: 
                    118: ]zz
                    119: <hr>
                    120: ^untaint[html]{1^taint[  ]2  3}
                    121: 
                    122: 
1.485     paf       123: @tappend2[]
                    124: $t[^table::set{a       b}]^t.append{1  2}$t.a
1.477     paf       125: 
1.479     paf       126: @badvsnprintf[]
                    127: ^connect[zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz]{
                    128: }
                    129: 
                    130: 
1.477     paf       131: @badoracequoting[]
                    132: $SQL.connect-string[oracle://webspb:webpwd@mts?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
                    133: ^connect[$SQL.connect-string]{
1.478     paf       134: ^void:sql{delete from paf}
1.479     paf       135: ^void:sql{insert into paf values (1, '$form:text')}
1.478     paf       136: $paf[^table::sql{select * from paf}]
                    137: ^paf.menu{
1.479     paf       138:        $paf.id: ^untaint{$paf.block}<hr>
1.478     paf       139: 
1.477     paf       140: }
1.478     paf       141: <hr>
                    142: 
1.477     paf       143: 
1.478     paf       144: ^rem{
1.477     paf       145: $news[^table::sql{select description from news}[$.limit(3)]]
                    146: ^news.menu{
                    147:        ^untaint{$news.description}<hr>
                    148: 
                    149: }
1.478     paf       150: <hr>
                    151: }
                    152: 
                    153: $tables[^table::sql{select table_name from user_tables}]
                    154: ^tables.menu{
                    155: $tables.table_name<br>
                    156: }
                    157: 
1.477     paf       158: }
                    159: <hr>
                    160: $env:PATH
1.476     paf       161: 
                    162: @badconstructors[]
                    163: $bred[^string::length[]]
                    164: $bred[^response::clear[]]
                    165: $bred[^int::int[]]
                    166: 
1.475     paf       167: 
                    168: @xloadwrongtable[]
                    169: $constr[^xdoc::load[wrongtable.xml]]
                    170: 
                    171: @xsetwrongtable[]
                    172: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?>
                    173: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    174: 
1.471     paf       175: 
1.472     paf       176: @tablecolumnerror[]
                    177: $t[^table::set{a}]
                    178: $t.$a
                    179: 
1.471     paf       180: @roll[]
1.472     paf       181: #$date[^date::set(1970;1;2)]
                    182: #^date.roll[month](-1)
                    183: $date[^date::set(2038;1;1)]
1.471     paf       184: ^date.roll[month](+1)
                    185: $date.year  $date.month  $date.day
1.470     paf       186: 
                    187: @cookie2[]
                    188: #=$cookie:clientType[$.value[test]]=<br>
                    189: =$cookie:clientType=<br>
                    190: 
1.469     paf       191: 
                    192: @tableset[]
                    193: $a[^table::set{a
                    194: 1
                    195: 2}]
                    196: ^eval(100\$a)
                    197: 
                    198: 
                    199: 
                    200: @zzz[]
                    201: 
1.462     paf       202: 
                    203: $constructor[
                    204: <block1 name="main_srvr" type="0" label="Основное тело" />
                    205: <block2 name="main_srvr2" type="0" label="Основное тело" />
                    206: ]
                    207: 
                    208: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    209: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    210: 
                    211: $children[$constr.documentElement.childNodes]
                    212: ^if($children){
                    213: ^for[i](1;^children._count[]){
                    214:        $node[$children.$i]
                    215:        $node.nodeName<br>
                    216: }
                    217: }
                    218:    
1.461     paf       219: 
                    220: @thashforeach3[]
                    221: $h[
                    222:        $.a[1] 
                    223:        $.b[2]
                    224: ]
                    225: $c[^table::set{a
                    226: ^h.foreach[key;value]{$value
                    227: }}]
                    228: $c.a
                    229: 
                    230: @thashforeach2[]
                    231: $h[
                    232:        $.a[1] 
                    233:        $.b[2]
                    234: ]
                    235: $c[
                    236: ^h.foreach[key;value]{
                    237:        $.$key[$value]
                    238: }
                    239: ]
                    240: $c.b
1.458     paf       241: 
                    242: @thashforeach[]
                    243: $h[
                    244:        $.a[1] 
                    245:        $.b[2]
                    246: ]
                    247: ^h.foreach[key;value]{
                    248:        $key=$value<br>
                    249: }
1.457     paf       250: 
                    251: @thashdelete[]
                    252: $h[$.a[1] $.b[2]]
                    253: was:<br>
                    254: count=^h._count[] <br>
                    255: b='$h.b' <br>
                    256: 
                    257: ^h.delete[b] 
                    258: 
                    259: now:<br>
                    260: count=^h._count[] <br>
                    261: b='$h.b' 
1.452     paf       262: 
                    263: @sappend[]
                    264: $test[123]
                    265: ^test.save[test]
                    266: ^test.save[append;test]
                    267: 
1.453     paf       268: @tappend[]
                    269: $test[^table::set{a    b
                    270: a1     b1}]
                    271: ^test.save[test]
                    272: $test[^table::set{a    b
                    273: a2     b2}]
                    274: ^test.save[append;test]
1.452     paf       275: 
1.448     paf       276: 
                    277: @tform[]
1.449     paf       278: ^if(def $form:new_file){y}{n}
                    279: <form method="post" enctype="multipart/form-data">
                    280: <input type="file" name="new_file" />
1.448     paf       281: <input type=submit>
                    282: </input>
1.447     paf       283: 
                    284: @formattest[]
                    285: $size(15.124)
                    286: 
                    287: ^size.format{%.2f}
1.446     paf       288: 
                    289: @filelist[]
                    290: $html[^file:list[.;\.html^$]]
                    291: ^html.menu{
                    292:        $html.name<br>
                    293: }
                    294: <hr>
1.431     paf       295: 
                    296: @безнадёжна_попытка_поправить_непоправимое[]
                    297: $dom_from_disk[^xdoc::load[input.xml]]
                    298: $dom_created_in_air[^xdoc::create[doc]]
                    299: ^dom_created_in_air.documentElement.appendChild[^dom_from_disk.documentElement.cloneNode(1)]
                    300: ^show-xdoc2[$dom_created_in_air]
                    301: 
1.426     parser    302: 
1.428     parser    303: @tcache[]
1.496     paf       304: ^rem{
1.428     parser    305: #^hashfile:clear[cache]
1.459     paf       306: $code[^hashfile::open[$DB_HOME;cache]]
1.496     paf       307: ^code.cache[key](2){
1.430     parser    308:        ^math:random(100)
                    309: #      ^code.delete[]
1.428     parser    310: }
1.496     paf       311: }
1.428     parser    312: 
1.426     parser    313: @thashfileexp[]
1.459     paf       314: $hf[^hashfile::open[$DB_HOME;hashfile]]
1.428     parser    315: $hf.paf[$.value[крут] $.expires(3)]
                    316: paf=$hf.paf
1.459     paf       317: <hr>
                    318: ^hf.foreach[key;value]{
                    319:        $key=$value<br>
                    320: }
1.427     parser    321: <hr>
                    322: $hash[^hf.hash[]]
                    323: =$hash.paf=
                    324: <hr>
1.420     parser    325: 
1.423     parser    326: @tcounter[]
1.440     paf       327: ^tcounterone[$DB_HOME]
1.466     paf       328: other root:
                    329: ^tcounterone[${DB_HOME}2]
                    330: again, first:
                    331: ^tcounterone[$DB_HOME]
1.432     paf       332: 
                    333: @tcounterone[DB_HOME]
                    334: $counter[^hashfile::open[$DB_HOME;counter]]
1.440     paf       335: #^counter.clear[]
1.423     parser    336: ^counter.transaction{
                    337: #      $counter.value(10)
                    338:        $counter.value($counter.value+1)
                    339: #      ^counter.delete[value]
                    340:        $counter.value
                    341: }
1.424     parser    342: <hr>
1.432     paf       343: ^rem{
1.424     parser    344: $hash[^counter.hash[]]
1.425     parser    345: =$hash.value=
1.424     parser    346: <hr>
1.432     paf       347: }
1.423     parser    348: 
                    349: @tablehash[]
                    350: $productList[^table::set{id    name
                    351: 1      носки
                    352: 2      валенки
                    353: 3      ушанка
                    354: }]
                    355: 
                    356: #скажем, у первого дилера
                    357: $firstPriceList[^table::set{id price
                    358: 1      0.3
                    359: 3      1000
                    360: }]
                    361: 
                    362: $firstPriceHash[^firstPriceList.hash[id]]
                    363: 
                    364: ^productList.menu{
                    365:     продукт "$productList.name" | цена у first: $firstPriceHash.[$productList.id].price<br>
                    366: }
                    367: 
                    368: 
1.420     parser    369: @hashfile[]
                    370: $hf[^hashfile::assign[hashfile]]
1.423     parser    371: #$hf.paf[крут5]
1.420     parser    372: paf=$hf.paf
1.402     parser    373: 
1.417     parser    374: @formclass[]
                    375: ^$form:CLASS.a=$form:CLASS.a
                    376: 
1.406     parser    377: @domdata[]
1.418     parser    378: ^if(1){
1.422     parser    379: #      $a{^hren[]}
1.418     parser    380: }
1.419     parser    381: $a
1.408     parser    382: $xdoc[^xdoc::create[doc]]
                    383: $doc[$xdoc.documentElement]
1.473     paf       384: $name[^doc.appendChild[^xdoc.createElement[name]]]
1.474     paf       385: $text[^name.appendChild[^xdoc.createTextNode[петросян&coz]]]
1.435     paf       386: ^untaint[as-is]{=$text.nodeValue=}
1.406     parser    387: 
                    388: @domedit[]
                    389: ^domdata[]
1.404     parser    390: #$paf.nodeName<br>
                    391: #$doc.documentElement.nodeName<br>
                    392: 
1.406     parser    393: ^show-xnode1[$xdoc.documentElement;0;1]
                    394: <hr>
                    395: ^show-xdoc2[$xdoc]
1.411     parser    396: <hr>
1.406     parser    397: 
                    398: @domxslt[]
                    399: ^domdata[]
1.405     parser    400: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.411     parser    401: <hr>
1.401     parser    402: 
                    403: @lsplit2[]
                    404: $path[/optics/]
                    405: $pathTable[^path.lsplit[/]]
                    406: ^pathTable.menu{
                    407:        ^if(def $pathTable.piece){
                    408:                =$pathTable.piece=
                    409:        }
                    410: }
                    411: 
1.395     parser    412: 
1.397     parser    413: @faceesize[]
                    414: $k(2)
                    415: $pict[^image::load[paf.gif]]
                    416: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.398     parser    417: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;250)
1.397     parser    418: $response:body[^small.gif[]]
                    419: 
1.395     parser    420: @imageresize[]
                    421: $k(2)
                    422: $pict[^image::create(400*$k;200*$k)]
                    423: $pict.line-width(2)
1.444     paf       424: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    425: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-20;$pict.height-20;0+20;360-20;0xff0000)
1.395     parser    426: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
1.444     paf       427: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-20;0x0000ff)
                    428: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+20;360-20;0xff0000)
                    429: $response:body[^pict.gif[]]
1.395     parser    430: 
1.443     paf       431: #$small[^image::create($pict.width/$k;$pict.height/$k)]
1.396     parser    432: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
1.443     paf       433: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;0)
1.395     parser    434: 
1.443     paf       435: #$response:body[^small.gif[]]
1.395     parser    436: 
1.388     parser    437: 
                    438: @tintdefault[]
                    439: #$abc[abc]
                    440: $abc[33]
                    441: ^abc.int[z]
                    442: #^abc.int(123)
1.390     parser    443: 
                    444: @ifassignhash[]
                    445: $h[^if(1){$.a(1);$.a(2)}]
                    446: $h.a
1.387     parser    447: 
                    448: @ifpasshash[]
                    449: $a[$.e[a]]
                    450: $b[$.e[b]]
1.389     parser    451: ^ifpasshashdest[^if(1){$a;$b}]
1.387     parser    452: #$x[^if(1){$a}{$b}]
                    453: #^ifpasshashdest[$x]
                    454: 
                    455: @ifpasshashdest[p]
                    456: $p.e
                    457: 
                    458: @movedir[]
                    459: ^file:move[a;deeper/a]
1.386     parser    460: 
                    461: @replace[]
                    462: $a[12^;3]
                    463: ^a.replace[^table::set{from    to
                    464: 2^;    !
                    465: }]
                    466: 
1.385     parser    467: 
                    468: @set[]
                    469: ^setdata[]
                    470: ^a.add[$b]
                    471: add:$a.3<br>
                    472: 
                    473: ^setdata[]
                    474: ^a.sub[$b]
                    475: sub2:$a.2<br>
                    476: sub1:$a.1<br>
                    477: 
                    478: ^setdata[]
                    479: $c[^a.union[$b]]
                    480: union3:$c.3<br>
                    481: union2:$c.2<br>
                    482: 
                    483: ^setdata[]
                    484: $c[^a.intersection[$b]]
                    485: intersection3:$c.3<br>
                    486: intersection2:$c.2<br>
                    487: 
                    488: ^setdata[]
                    489: intersects:^if(^a.intersects[$b]){y;n}<br>
                    490: intersects2:^if(^a.intersects[ ]){y;n}<br>
                    491: 
                    492: 
                    493: <hr>
                    494: 
                    495: @setdata[]
                    496: $a[$.1[a1] $.2[a2]]
                    497: $b[        $.2[b2] $.3[b3]]
                    498: 
1.383     parser    499: 
1.384     parser    500: @hash[]
                    501: $h[^hash::create[$._default[123]]]
                    502: $h.paf[not kretin]
                    503: $h.paf<br>
                    504: =$h.that=<br>
                    505: 
                    506: @methresult[]
                    507: $result[^table::set{1}]
1.377     parser    508: 
1.381     parser    509: @terror[]
                    510: ^error[method z must be called with z]
                    511: 
1.380     parser    512: @syntax1[]
                    513: #^a[^b]
                    514: 
                    515: @syntax2[]
1.381     parser    516: #^a[
1.379     parser    517: 
1.377     parser    518: @ssave[]
                    519: $abc[abc]
                    520: ^abc.save[abc]
1.376     parser    521: 
                    522: @calendar[]
                    523: 2001;11:<br>
                    524: $week_days[^date:calendar[rus](2001;11)]
                    525: <pre>
                    526: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday;&nbsp^;&nbsp^;} }<br>}
                    527: </pre>
1.372     parser    528: 
1.375     parser    529: @thash[]
                    530: $table[^table::set{id  name    age
                    531: 1      paf     278
                    532: 2      пиф     234
                    533: }]
                    534: $hash[^table.hash[id;^table::set[nameless]{id
                    535: name}]]
                    536: $hash.2.id $hash.2.name $hash.2.age
                    537: 
1.372     parser    538: @tdef[]
                    539: $s[0]
                    540: if 0=^if($s){}{n}<br>
                    541: if def 0=^if(def $s){y}{}<br>
                    542: <hr>
1.371     parser    543: 
                    544: @ford[]
1.374     parser    545: ^for[i](0;5){$i}{($i)}
1.368     parser    546: 
1.370     parser    547: @tif[]
                    548: ^if[def]{y;n}
                    549: 
1.368     parser    550: @image[]
                    551: $pict[^image::create(400;200)]
1.379     parser    552: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    553: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                    554: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    555: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                    556: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368     parser    557: $response:body[^pict.gif[]]
                    558: 
                    559: 
1.366     parser    560: 
1.369     parser    561: @mail2[]
1.367     parser    562: ^mail:send[
1.369     parser    563:        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    564:        $.from[Александр Петросян <paf@design.ru>]
1.367     parser    565:        $.to[Александр Петросян <paf@design.ru>]
1.369     parser    566:        $.subject[проверка]
                    567:        $.body[проверка]
1.367     parser    568: ]
                    569: 
1.366     parser    570: @cookie[]
1.367     parser    571: $env:HTTP_COOKIE<br>
                    572: 
                    573: #$cookie:переменная[test тест ТЕСТ2]
                    574: =$cookie:переменная=<br>
                    575: #$cookie:переменная2[test тест ТЕСТ3]
                    576: =$cookie:переменная2=<br>
1.412     parser    577: =$cookie:CLASS.переменная2=<br>
1.365     parser    578: 
                    579: @response[]
                    580: #^if($form:reload){
                    581:        $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
                    582: #}
1.364     parser    583: 
                    584: @xslt[]
                    585: ^xdata[]
1.407     parser    586: $transformed[^xdoc.transform[global.xsl;$.param1[123/]]]
                    587: ^show-xdoc2[$transformed]
1.364     parser    588: 
                    589: @regexp2[]
                    590: $s[  select]
                    591: $s[^s.match[^^\s*][]{!}]
                    592: $s
                    593: 
                    594: @header[]
                    595: $response:refresh[
                    596:        $.value[0]
                    597:        $.url[http://design.ru?a=^taint[123]]
                    598: ]
                    599: 
                    600: @ttablerem[]
                    601: $table[^table::load[a.cfg]]
                    602: ^table.menu{$table.a}
                    603: 
                    604: @tconnect[]
                    605: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
                    606: $tables[^table::sql{show tables}]
                    607: #$cols[^tables.columns[]]
                    608: #$cols.column
                    609: ^tables.menu{
                    610:        $tables.[Tables_in_test]<br>
                    611: }
                    612: }
                    613: 
                    614: @pcre[]
                    615: $s[1 2]
                    616: ^s.match[\s;ig]{!}
                    617: #^s.match[\d;ig]{!}
                    618: 
                    619: 
                    620: @regexp[]
                    621: $s[abcАБВ]
                    622: ^if(^s.match[б][i]){y}{n}
                    623: 
                    624: @mail[]
                    625: #$ORIGINS(1)
                    626: ^mail:send[
                    627:        $.from[paf@design.ru]
                    628:        $.to[paf@design.ru]
                    629:        $.body[1
                    630:        
                    631:        2
                    632:        
                    633:        
                    634:                3]
                    635: ]
                    636: 
                    637: @exec[]
1.370     parser    638: $a[^file::exec[fc.exe;;a;b]]
1.364     parser    639: $a.status|$a.stderr<hr>
                    640: 
                    641: @fori[][i]
                    642: ^for[i](1;3){... =$i= ...}
                    643: 
1.489     paf       644: @xdata0[]
1.364     parser    645: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
1.468     paf       646: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
                    647: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    648: <people>
                    649:        <man id="1" имя="word слово">
                    650:                <name>P&#171^;AF        B</name>
                    651:        </man>
                    652:                <man id="2">
                    653:                        <name>ПИФ^taint[&]</name>
                    654:                </man>
                    655: </people>
                    656: }]
1.489     paf       657: 
                    658: @xdata[]
                    659: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
1.490     paf       660: $xdoc[^xdoc::set{^process{<?xml version="1.0" encoding="windows-1251"?>
1.489     paf       661: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    662: <people>
                    663:        <man id="1" имя="word слово">
                    664:                <name>P&#171^;AF        B</name>
                    665:        </man>
                    666:                <man id="2">
                    667:             <name>ПИФ^taint[&]</name>
                    668:                </man>
                    669: </people>
                    670: }}]
1.364     parser    671: 
                    672: @xml[]
                    673: ^xdata[]
                    674: 
                    675: ^show-xdoc2[$xdoc]<hr>
                    676: #^show-xnode1[$xdoc]<hr>
                    677: $people[^xdoc.select[*/man]]
                    678: #^show1[]
                    679: ^show-xnodes1[$people]<hr>
                    680: #^people.0.owner.hren[]
                    681: 
1.393     parser    682: ^show-xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
1.364     parser    683: 
                    684: by id:
                    685: ^show-xnode1[^xdoc.getElementById[1];0;1]
                    686: <hr>
                    687: 
                    688: @show1[array]
                    689: ^for[i](0;^array._count[]-1){
                    690:     $x[$array.$i]
                    691:        $x.firstChild.nodeValue: 
                    692:                $pattributes[$x.parentNode.attributes]
                    693:                ^if(^pattributes._count[]){
                    694:                        $pattributes.id.name=$pattributes.id.nodeValue
                    695:                }
                    696:        <br>
                    697: }
                    698:        
                    699: @show-xnodes1[array][i]
                    700: ^for[i](0;^array._count[]-1){
                    701:        ^show-xnode1[$array.$i;0;1]
                    702: }
                    703: 
                    704: @show-xnode1[x;level;single][l]
                    705: ^if(def $x){
                    706:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                    707:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    708:        &lt^;$x.nodeName
                    709:            $pairs[$x.attributes]
                    710:            ^if(def $pairs){
                    711:                $names[^pairs._keys[]]
                    712:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                    713:            }
                    714:            &gt^;
                    715:     }{
                    716:        [$x.nodeType]
                    717:     }
                    718:     
                    719:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                    720:     ^show-xnode1[$x.firstChild]($level+1)
                    721:     ^if(!$single){
                    722:            ^show-xnode1[$x.nextSibling]($level)
                    723:     }
                    724: 
                    725:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    726:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                    727:     }
                    728: }
                    729: 
                    730: @show-xdoc2[xdoc]
1.473     paf       731: ^xdoc.save[out/save.xml;
1.364     parser    732: #      $.encoding[windows-1251]
                    733:        $.method[xml]
                    734: ]
                    735: $file[^xdoc.file[
                    736: #      $.encoding[windows-1251]
                    737:        $.method[html]
                    738: ]]
1.473     paf       739: ^file.save[text;out/save_file.html]
1.487     paf       740: #$response:body[^xdoc.file[    $.media-type[text/paf]  ]]
                    741: <pre>^taint[html][^xdoc.string[
                    742: #      $.method[html]
                    743: #      $.version[1.0]
                    744: #      $.encoding[utf-8]
                    745: #      $.omit-xml-declaration[yes]
                    746: #      $.standalone[yes]
                    747: #      $.doctype-public[-//W3C//DTD XHTML]
                    748: #      $.doctype-system[/a/b/c/]
                    749: #      $.indent[no]
                    750:        $.media-type[text/paf]
1.486     paf       751: ]]
1.413     parser    752: </pre>
1.435     paf       753: 

E-mail: