--- parser3/www/htdocs/Attic/index.html 2002/02/18 12:05:02 1.7 +++ parser3/www/htdocs/Attic/index.html 2002/03/18 15:29:46 1.22 @@ -7,7 +7,16 @@ $response:charset[windows-1251] $response:content-type[$.value[text/html]$.charset[$response:charset]] @main[] -^divnamestop[] +^exceptions1[] +#^locate_by_expr[] +#^method_junction_params{...} +#^verifyCookie[paf] +#^execlangs[] +#$t[^tobjeresult[]]$t.a +#^xmlprobs[] +#^doubleprobs[] +#^math:random(-10) +#^divnamestop[] #^arrayclone[] #^operator_tricks[] #^xoutputrusattr[] @@ -100,6 +109,67 @@ $response:content-type[$.value[text/html
OK +@exceptions1[] +^try{ + aaa + ^throw[user;paf;is stupid] +}{ +$exception.handled(1) +#^throw[$exception] + type=$exception.type
+ source=$exception.source
+ file=$exception.file
+ lineno=$exception.lineno
+ comment=$exception.comment
+} + +@locate_by_expr[] +$t[^table::create{a b +1 nok +2 ok +3 nok +}] +^if(^t.locate($t.a==2)){$t.b}{n} + +@method_junction_params[param] +^if($param is junction){junction}{ne junction} + +@verifyCookie[value] +^if($cookie:dummyvote eq $value){ + $result(1) +}{ + $cookie:dummyvote[$value] + $result(0) +} + +@execlangs[] +$f[^file::exec[test.pl]] +^process{$f.text} +#$c[^t.columns[]] +#^c.menu{ +#* $c.column
+#} +=$t.c= + +@tobjeresult[] +^table::create{a +12} + +@xmlprobs[] +$xmlDataType[^xdoc::load[program.xml]] +#
^taint[^xmlDataType.string[]]
+$xmlDataTypes[^xmlDataType.select[programs/program[@id=4]/data]]
+#=^xmlDataTypes._count[]=
+=^xmlDataTypes.0.getAttribute[type-id]=
+
+@doubleprobs[]
+$1(^math:radians(180))
+$2($math:PI)
+^if(^1.format[%.10f]==^2.format[%.10f]){y;n}
+^if($1==$2){y;n}
+^if(^math:radians(180)==$math:PI){y;n}
+
+
 @divnamestop[]
 $a(10)
 ^eval($a\3)