Annotation of parser3/src/www/htdocs/index.html, revision 1.421
1.399 parser 1: @main[]
1.420 parser 2: ^hashfile[]
1.417 parser 3: #^formclass[]
1.415 parser 4: #^hren[]
1.420 parser 5: #^domedit[]
6: #^domxslt[]
1.402 parser 7: #^lsplit2[]
1.401 parser 8: #^faceesize[]
1.400 parser 9: #^imageresize[]
1.399 parser 10: #^ifassignhash[]
11: #^tintdefault[]
12: #$response:status[404]
1.390 parser 13: #^ifpasshash[]
1.387 parser 14: #^movedir[]
15: #^replace[]
1.416 parser 16: #^set[]
1.385 parser 17: #^hash[]<hr>
1.384 parser 18: #$t[^methresult[]] ->$t
1.382 parser 19: #^terror[]
1.378 parser 20: #^ssave[]
1.377 parser 21: #^calendar[]
1.376 parser 22: #^thash[]
1.373 parser 23: #^tdef[]
1.375 parser 24: #^ford[]
1.371 parser 25: #^tif[]
1.383 parser 26: #^image[]
1.369 parser 27: #^mail2[]
1.413 parser 28: #^cookie[]
1.365 parser 29: #^response[]
1.364 parser 30: #^regexp2[]
31: #^ttablerem[]
32: #^pcre[]
33: #^regexp[]<hr>
34: #^mail[]
35: #^exec[]
36: #^fori[]
37: #^tconnect[]
1.406 parser 38: #^xslt[]
1.395 parser 39: #^xml[]
1.364 parser 40: #^header[]
41: OK
1.420 parser 42:
43: @hashfile[]
44: $hf[^hashfile::assign[hashfile]]
1.421 ! parser 45: $hf.paf[krut2]
1.420 parser 46: paf=$hf.paf
1.402 parser 47:
1.417 parser 48: @formclass[]
49: ^$form:CLASS.a=$form:CLASS.a
50:
1.406 parser 51: @domdata[]
1.418 parser 52: ^if(1){
1.419 parser 53: $a{^hren[]}
1.418 parser 54: }
1.419 parser 55: $a
1.408 parser 56: $xdoc[^xdoc::create[doc]]
57: $doc[$xdoc.documentElement]
58: $name[^doc.appendChild[^xdoc.createElement[name]]]
1.405 parser 59: $text[^name.appendChild[^xdoc.createTextNode[петросян petrosian]]]
1.406 parser 60:
61: @domedit[]
62: ^domdata[]
1.404 parser 63: #$paf.nodeName<br>
64: #$doc.documentElement.nodeName<br>
65:
1.406 parser 66: ^show-xnode1[$xdoc.documentElement;0;1]
67: <hr>
68: ^show-xdoc2[$xdoc]
1.411 parser 69: <hr>
1.406 parser 70:
71: @domxslt[]
72: ^domdata[]
1.405 parser 73: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.411 parser 74: <hr>
1.401 parser 75:
76: @lsplit2[]
77: $path[/optics/]
78: $pathTable[^path.lsplit[/]]
79: ^pathTable.menu{
80: ^if(def $pathTable.piece){
81: =$pathTable.piece=
82: }
83: }
84:
1.395 parser 85:
1.397 parser 86: @faceesize[]
87: $k(2)
88: $pict[^image::load[paf.gif]]
89: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.398 parser 90: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;250)
1.397 parser 91: $response:body[^small.gif[]]
92:
1.395 parser 93: @imageresize[]
94: $k(2)
95: $pict[^image::create(400*$k;200*$k)]
96: $pict.line-width(2)
97: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
1.397 parser 98: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-20;$pict.height-20;0+20;360-20;0xff0000)
1.395 parser 99: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
1.397 parser 100: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-20;0x0000ff)
101: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+20;360-20;0xff0000)
1.395 parser 102: #$response:body[^pict.gif[]]
103:
104: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.396 parser 105: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
1.398 parser 106: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;0)
1.395 parser 107:
108: $response:body[^small.gif[]]
109:
1.388 parser 110:
111: @tintdefault[]
112: #$abc[abc]
113: $abc[33]
114: ^abc.int[z]
115: #^abc.int(123)
1.390 parser 116:
117: @ifassignhash[]
118: $h[^if(1){$.a(1);$.a(2)}]
119: $h.a
1.387 parser 120:
121: @ifpasshash[]
122: $a[$.e[a]]
123: $b[$.e[b]]
1.389 parser 124: ^ifpasshashdest[^if(1){$a;$b}]
1.387 parser 125: #$x[^if(1){$a}{$b}]
126: #^ifpasshashdest[$x]
127:
128: @ifpasshashdest[p]
129: $p.e
130:
131: @movedir[]
132: ^file:move[a;deeper/a]
1.386 parser 133:
134: @replace[]
135: $a[12^;3]
136: ^a.replace[^table::set{from to
137: 2^; !
138: }]
139:
1.385 parser 140:
141: @set[]
142: ^setdata[]
143: ^a.add[$b]
144: add:$a.3<br>
145:
146: ^setdata[]
147: ^a.sub[$b]
148: sub2:$a.2<br>
149: sub1:$a.1<br>
150:
151: ^setdata[]
152: $c[^a.union[$b]]
153: union3:$c.3<br>
154: union2:$c.2<br>
155:
156: ^setdata[]
157: $c[^a.intersection[$b]]
158: intersection3:$c.3<br>
159: intersection2:$c.2<br>
160:
161: ^setdata[]
162: intersects:^if(^a.intersects[$b]){y;n}<br>
163: intersects2:^if(^a.intersects[ ]){y;n}<br>
164:
165:
166: <hr>
167:
168: @setdata[]
169: $a[$.1[a1] $.2[a2]]
170: $b[ $.2[b2] $.3[b3]]
171:
1.383 parser 172:
1.384 parser 173: @hash[]
174: $h[^hash::create[$._default[123]]]
175: $h.paf[not kretin]
176: $h.paf<br>
177: =$h.that=<br>
178:
179: @methresult[]
180: $result[^table::set{1}]
1.377 parser 181:
1.381 parser 182: @terror[]
183: ^error[method z must be called with z]
184:
1.380 parser 185: @syntax1[]
186: #^a[^b]
187:
188: @syntax2[]
1.381 parser 189: #^a[
1.379 parser 190:
1.377 parser 191: @ssave[]
192: $abc[abc]
193: ^abc.save[abc]
1.376 parser 194:
195: @calendar[]
196: 2001;11:<br>
197: $week_days[^date:calendar[rus](2001;11)]
198: <pre>
199: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday; ^; ^;} }<br>}
200: </pre>
1.372 parser 201:
1.375 parser 202: @thash[]
203: $table[^table::set{id name age
204: 1 paf 278
205: 2 пиф 234
206: }]
207: $hash[^table.hash[id;^table::set[nameless]{id
208: name}]]
209: $hash.2.id $hash.2.name $hash.2.age
210:
1.372 parser 211: @tdef[]
212: $s[0]
213: if 0=^if($s){}{n}<br>
214: if def 0=^if(def $s){y}{}<br>
215: <hr>
1.371 parser 216:
217: @ford[]
1.374 parser 218: ^for[i](0;5){$i}{($i)}
1.368 parser 219:
1.370 parser 220: @tif[]
221: ^if[def]{y;n}
222:
1.368 parser 223: @image[]
224: $pict[^image::create(400;200)]
1.379 parser 225: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
226: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
227: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
228: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
229: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368 parser 230: $response:body[^pict.gif[]]
231:
232:
1.366 parser 233:
1.369 parser 234: @mail2[]
1.367 parser 235: ^mail:send[
1.369 parser 236: $.content-type[$.value[text/plain] $.charset[windows-1251]]
237: $.from[Александр Петросян <paf@design.ru>]
1.367 parser 238: $.to[Александр Петросян <paf@design.ru>]
1.369 parser 239: $.subject[проверка]
240: $.body[проверка]
1.367 parser 241: ]
242:
1.366 parser 243: @cookie[]
1.367 parser 244: $env:HTTP_COOKIE<br>
245:
246: #$cookie:переменная[test тест ТЕСТ2]
247: =$cookie:переменная=<br>
248: #$cookie:переменная2[test тест ТЕСТ3]
249: =$cookie:переменная2=<br>
1.412 parser 250: =$cookie:CLASS.переменная2=<br>
1.365 parser 251:
252: @response[]
253: #^if($form:reload){
254: $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
255: #}
1.364 parser 256:
257: @xslt[]
258: ^xdata[]
1.407 parser 259: $transformed[^xdoc.transform[global.xsl;$.param1[123/]]]
260: ^show-xdoc2[$transformed]
1.364 parser 261:
262: @regexp2[]
263: $s[ select]
264: $s[^s.match[^^\s*][]{!}]
265: $s
266:
267: @header[]
268: $response:refresh[
269: $.value[0]
270: $.url[http://design.ru?a=^taint[123]]
271: ]
272:
273: @ttablerem[]
274: $table[^table::load[a.cfg]]
275: ^table.menu{$table.a}
276:
277: @tconnect[]
278: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
279: $tables[^table::sql{show tables}]
280: #$cols[^tables.columns[]]
281: #$cols.column
282: ^tables.menu{
283: $tables.[Tables_in_test]<br>
284: }
285: }
286:
287: @pcre[]
288: $s[1 2]
289: ^s.match[\s;ig]{!}
290: #^s.match[\d;ig]{!}
291:
292:
293: @regexp[]
294: $s[abcАБВ]
295: ^if(^s.match[б][i]){y}{n}
296:
297: @mail[]
298: #$ORIGINS(1)
299: ^mail:send[
300: $.from[paf@design.ru]
301: $.to[paf@design.ru]
302: $.body[1
303:
304: 2
305:
306:
307: 3]
308: ]
309:
310: @exec[]
1.370 parser 311: $a[^file::exec[fc.exe;;a;b]]
1.364 parser 312: $a.status|$a.stderr<hr>
313:
314: @fori[][i]
315: ^for[i](1;3){... =$i= ...}
316:
317: @xdata[]
318: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
319: $xdoc[^xdoc::load[input.xml]]
320:
321: @xml[]
322: ^xdata[]
323:
324: ^show-xdoc2[$xdoc]<hr>
325: #^show-xnode1[$xdoc]<hr>
326: $people[^xdoc.select[*/man]]
327: #^show1[]
328: ^show-xnodes1[$people]<hr>
329: #^people.0.owner.hren[]
330:
1.393 parser 331: ^show-xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
1.364 parser 332:
333: by id:
334: ^show-xnode1[^xdoc.getElementById[1];0;1]
335: <hr>
336:
337: @show1[array]
338: ^for[i](0;^array._count[]-1){
339: $x[$array.$i]
340: $x.firstChild.nodeValue:
341: $pattributes[$x.parentNode.attributes]
342: ^if(^pattributes._count[]){
343: $pattributes.id.name=$pattributes.id.nodeValue
344: }
345: <br>
346: }
347:
348: @show-xnodes1[array][i]
349: ^for[i](0;^array._count[]-1){
350: ^show-xnode1[$array.$i;0;1]
351: }
352:
353: @show-xnode1[x;level;single][l]
354: ^if(def $x){
355: ^for[l](0;$level-1){ ^; ^; ^; ^;}
356: ^if($x.nodeType == $xnode:ELEMENT_NODE){
357: <^;$x.nodeName
358: $pairs[$x.attributes]
359: ^if(def $pairs){
360: $names[^pairs._keys[]]
361: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
362: }
363: >^;
364: }{
365: [$x.nodeType]
366: }
367:
368: ^if(def $x.nodeValue){$x.nodeValue}<br>
369: ^show-xnode1[$x.firstChild]($level+1)
370: ^if(!$single){
371: ^show-xnode1[$x.nextSibling]($level)
372: }
373:
374: ^if($x.nodeType == $xnode:ELEMENT_NODE){
375: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
376: }
377: }
378:
379: @show-xdoc2[xdoc]
380: ^xdoc.save[save.xml;
381: # $.encoding[windows-1251]
382: $.method[xml]
383: ]
384: $file[^xdoc.file[
385: # $.encoding[windows-1251]
386: $.method[html]
387: ]]
388: ^file.save[text;save_file.html]
1.413 parser 389: <pre>^taint[^xdoc.string[]]
1.364 parser 390: # $.encoding[windows-1251]
1.413 parser 391: # $.method[html]
1.364 parser 392: #]]
1.413 parser 393: </pre>
E-mail: