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

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

E-mail: