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

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

E-mail: