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

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

E-mail: