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

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

E-mail: