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