--- parser3/src/www/htdocs/Attic/index.html 2001/04/23 10:19:06 1.151
+++ parser3/src/www/htdocs/Attic/index.html 2001/11/09 12:09:53 1.468
@@ -1,441 +1,589 @@
-@dump[t]
-^t.menu{$n
}
-
-@func[n]
-$n
-@twop[a;b]
-($a,$b)
-
-@Я postprocess[data]
-#(
$data)
-^data.match[1][g]{X}
-
-@mt[s;m]
-$m ^if(^s.match[$:m;i]){matches}{does not match} $s
-
@main[]
+#^xchildren[]
+#^thashforeach3[]
+#^thashforeach2[]
+#^thashforeach[]
+#^thashdelete[]
+#^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
+#^tappend[]
+#^sappend[]
+#^eval(10\3)
+#^tform[]
+#^formattest[]
+#^filelist[]
+#^connect[mysql://user:pass@host]{ }
+#^безнадёжна_попытка_поправить_непоправимое[]
+#^tcache[]
+#^thashfileexp[]
+#^tcounter[]
+#^tablehash[]
+#j^hashfile[]
+#^formclass[]
+#^hren[]
+#^domedit[]
+#^domxslt[]
+#^lsplit2[]
+#^faceesize[]
+#^imageresize[]
+#^ifassignhash[]
+#^tintdefault[]
+#$response:status[404]
+#^ifpasshash[]
+#^movedir[]
+#^replace[]
+#^set[]
+#^hash[]
+#$t[^methresult[]] ->$t
+#^terror[]
+#^ssave[]
+#^calendar[]
+#^thash[]
+#^tdef[]
+#^ford[]
+#^tif[]
+#^image[]
+#^mail2[]
+#^cookie[]
+#^response[]
+#^regexp2[]
+#^ttablerem[]
+#^pcre[]
+#^regexp[]
+#^mail[]
+#^exec[]
+#^fori[]
+#^tconnect[]
+^xslt[]
+^xml[]
+#^header[]
+OK
+
+$constructor[
+
+
+]
+$constr[^xdoc::set{
+^untaint[as-is]{$constructor}}]
-image:create
-$itext[^image:create(300;100)]
-$itext{
-^font[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя0123456789-+=!\"%:,.^^^;<>?@()[]'&*/;font.gif](13)
-^^text(10;10)[ПАФ сделал это]
-^text(10;10)[ПАФ сделал это]
-^font[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя0123456789-+=!\"%:,.^^^;<>?@()[]'&*/;font.gif](13;8)
-^^text(10;30)[ПАФ сделал это fixed]
-^text(10;30)[ПАФ сделал это fixed]
-}
-$ff[^itext.gif[]]
-^ff.save[i/itext.gif]
-^ff.save[i2/itext.gif]
-^file:delete[i2/itext.gif]
-^itext.html[$src[i/itext.gif]]
-
-
-
-$t[^table:set{id}]
-^^t.id.int[]=^t.id.int[]
-^^hren.double[]=^hren.double[]
-
-#image:create
-#$drawing[^image:create(300;100)]
-drawing:load
-$drawing[^image:load[001004paf(c)lena_karin.gif]]
-$drawing{
-^$drawing.width=$width
-^$drawing.height=$height
-^for[i](0;$width/4){
-^line(0;0)($:i*4;$height-1)(0x00FF00)
-}
-
-^rectangle(100;10)(180;40)(0xFF0000)
-^bar(100+20;10+20)(180+20;40+20)(0xFFFF00)
-^fill(0;0)(0x0000FF)
-^replace(0xFFffFF;0x00FF00)(30;0)(150;99)(200;50)
-^polybar(0x00FFFF)(200;100)(170;99)(280;50)
-^polygon(0xFFFF00)(210;100)(160;90)(250;50)
-
-}
-
-#$response:body[^drawing.gif[]]
-$ff[^drawing.gif[]]
-^ff.save[drawing.gif]
-^drawing.html[$src[drawing.gif]]
-
-image:load
-$face[^image:load[001004paf(c)lena_karin.gif]]
-^$face.src=$face.src
-^$face.width=$face.width
-^$face.height=$face.height
-
-
-^if($form:photo){
-upload file:
-$face[^image:measure[$form:photo]]
-$face.src=$face.src
-^$face.width=$face.width
-^$face.height=$face.height
-
-}
-gif file class:
-$face[^image:measure[^file:load[001004paf(c)lena_karin.gif]]]
-^$face.src=$face.src
-^$face.width=$face.width
-^$face.height=$face.height
-^^face.html[]=^face.html[]
-
-gif:
-$face[^image:measure[001004paf(c)lena_karin.gif]]
-^$face.src=$face.src
-^$face.width=$face.width
-^$face.height=$face.height
-^^face.html[]=^face.html[]
-
-jpeg:
-$face[^image:measure[001004paf(c)lena_karin.jpg]]
-^$face.src=$face.src
-^$face.width=$face.width
-^$face.height=$face.height
-^^face.html[^$border(1) ^$ismap(-1)]=^face.html[$border(1) $ismap(-1)]
-
-
-^rem{
-^mail:send[
- $to[paf@design.ru]
- $subject[test проверка]
- $body[test]
- $content-type[$charset[windows-1251]]
+$children[$constr.documentElement.childNodes]
+^if($children){
+^for[i](1;^children._count[]){
+ $node[$children.$i]
+ $node.nodeName
+}
+}
+
+
+@thashforeach3[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+$c[^table::set{a
+^h.foreach[key;value]{$value
+}}]
+$c.a
+
+@thashforeach2[]
+$h[
+ $.a[1]
+ $.b[2]
]
-
+$c[
+^h.foreach[key;value]{
+ $.$key[$value]
}
-
-env.pl
-$e[^file:cgi[env.pl;$t[1]]]
-^$e.exit-code=$e.exit-code
-^$e.stderr="$e.stderr"
-^$e.header="$e.header"
-$e.text
-
-
-^rem{^mail:send[
- $to[paf@design.ru]
- $from[paf@design.ru]
- $body[
- $1[
- $content-type[
- $value[text/plain]
- $charset[windows-1251]
- ]
- $body[привет, PAF.
-
-sincerily yours,
-PAF
]
- ]
- $attach[
- $value[^file:load[test.zip]]
- $type[uue]
- $file-name[retest.zip]
- ]
- ]
+$c.b
+
+@thashforeach[]
+$h[
+ $.a[1]
+ $.b[2]
]
+^h.foreach[key;value]{
+ $key=$value
}
-^rem{^mail:send[
- $content-type[
- $value[text/plain]
- $charset[windows-1251]
- ]
- $to[paf@design.ru]
- $from[paf@design.ru]
- $body[привет, PAF.
+@thashdelete[]
+$h[$.a[1] $.b[2]]
+was:
+count=^h._count[]
+b='$h.b'
+
+^h.delete[b]
+
+now:
+count=^h._count[]
+b='$h.b'
+
+@sappend[]
+$test[123]
+^test.save[test]
+^test.save[append;test]
+
+@tappend[]
+$test[^table::set{a b
+a1 b1}]
+^test.save[test]
+$test[^table::set{a b
+a2 b2}]
+^test.save[append;test]
+
+
+@tform[]
+^if(def $form:new_file){y}{n}
+