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

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

E-mail: