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