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