--- parser3/src/www/htdocs/Attic/index.html 2001/08/20 13:22:05 1.268
+++ parser3/src/www/htdocs/Attic/index.html 2001/11/08 11:52:35 1.467
@@ -1,1745 +1,578 @@
-@USE
-t.p
-dtf.p
-
@main[]
-#$ORIGINS(1)
-^func(0)
-#^tests[]
+#^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[
+
+
+]
-@func[param]
-#[local]
-$local(0)
-^local.inc(1)
-#$local($local+1)
-=$local=
-^if($param<10){^func($param+1)}
-
-@bannerSSI[][code]
-$code[^file::cgi[/../cgi-bin/bbssi.pl;
- $.QUERY_STRING[d=1&H=ad1.lbe.ru&pubid=91033&pg=1&vbn=26&num=1&w=-1&h=-1&r=ssi&i=http://go.bb.ru/images/onerror/bb.gif&g=http://www.bb.ru&before=&after=&bafter=]
-]]
-$result[^untaint[as-is]{$code.text}]
+$constr[^xdoc::set{
+^untaint[as-is]{$constructor}}]
-@bannerJS[]
-
-
-
-
-@tests[]
-$ab(123)
-${[ab]}=
-
-$хэш[$.возраст(88)] $достать[$.поле[возраст]] ^хэш.[$достать.поле].format{%05d}
-
+$children[$constr.documentElement.childNodes]
+^if($children){
+^for[i](1;^children._count[]){
+ $node[$children.$i]
+ $node.nodeName
+}
+}
+
-$люди[
- $.вася[
- $.возраст(45)
- ]
+@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]
+}
+]
+$c.b
-$люди.вася.[$человек.поле]
-^люди.вася.[$человек.поле].format{%010d}
-
+@thashforeach[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+^h.foreach[key;value]{
+ $key=$value
+}
-
-$unsorted[^table::set{a b
-1 1
-3 3
-2 2
-}]
-$sorted[^unsorted.sort($unsorted.a)]
-^sorted.menu{$sorted.a}[,]
-
- =^dtf:format[aaa-%Y-bbb-%m]=
+@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}
+