Annotation of parser3/www/htdocs/index.html, revision 1.2

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

E-mail: