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

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

E-mail: