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

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

E-mail: