Annotation of parser3/src/www/htdocs/index.html, revision 1.384
1.364 parser 1: @main[]
1.384 ! parser 2: ^hash[]<hr>
! 3: #$t[^methresult[]] ->$t
1.382 parser 4: #^terror[]
1.378 parser 5: #^ssave[]
1.377 parser 6: #^calendar[]
1.376 parser 7: #^thash[]
1.373 parser 8: #^tdef[]
1.375 parser 9: #^ford[]
1.371 parser 10: #^tif[]
1.383 parser 11: #^image[]
1.369 parser 12: #^mail2[]
1.367 parser 13: #^cookie[]
1.365 parser 14: #^response[]
1.364 parser 15: #^regexp2[]
16: #^ttablerem[]
17: #^pcre[]
18: #^regexp[]<hr>
19: #^mail[]
20: #^exec[]
21: #^fori[]
22: #^tconnect[]
1.383 parser 23: #^xslt[]
1.366 parser 24: #^xml[]
1.364 parser 25: #^header[]
26: OK
1.383 parser 27:
1.384 ! parser 28: @hash[]
! 29: $h[^hash::create[$._default[123]]]
! 30: $h.paf[not kretin]
! 31: $h.paf<br>
! 32: =$h.that=<br>
! 33:
! 34: @methresult[]
! 35: $result[^table::set{1}]
1.377 parser 36:
1.381 parser 37: @terror[]
38: ^error[method z must be called with z]
39:
1.380 parser 40: @syntax1[]
41: #^a[^b]
42:
43: @syntax2[]
1.381 parser 44: #^a[
1.379 parser 45:
1.377 parser 46: @ssave[]
47: $abc[abc]
48: ^abc.save[abc]
1.376 parser 49:
50: @calendar[]
51: 2001;11:<br>
52: $week_days[^date:calendar[rus](2001;11)]
53: <pre>
54: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday; ^; ^;} }<br>}
55: </pre>
1.372 parser 56:
1.375 parser 57: @thash[]
58: $table[^table::set{id name age
59: 1 paf 278
60: 2 пиф 234
61: }]
62: $hash[^table.hash[id;^table::set[nameless]{id
63: name}]]
64: $hash.2.id $hash.2.name $hash.2.age
65:
1.372 parser 66: @tdef[]
67: $s[0]
68: if 0=^if($s){}{n}<br>
69: if def 0=^if(def $s){y}{}<br>
70: <hr>
1.371 parser 71:
72: @ford[]
1.374 parser 73: ^for[i](0;5){$i}{($i)}
1.368 parser 74:
1.370 parser 75: @tif[]
76: ^if[def]{y;n}
77:
1.368 parser 78: @image[]
79: $pict[^image::create(400;200)]
1.379 parser 80: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
81: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
82: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
83: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
84: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368 parser 85: $response:body[^pict.gif[]]
86:
87:
1.366 parser 88:
1.369 parser 89: @mail2[]
1.367 parser 90: ^mail:send[
1.369 parser 91: $.content-type[$.value[text/plain] $.charset[windows-1251]]
92: $.from[Александр Петросян <paf@design.ru>]
1.367 parser 93: $.to[Александр Петросян <paf@design.ru>]
1.369 parser 94: $.subject[проверка]
95: $.body[проверка]
1.367 parser 96: ]
97:
1.366 parser 98: @cookie[]
1.367 parser 99: $env:HTTP_COOKIE<br>
100:
101: #$cookie:переменная[test тест ТЕСТ2]
102: =$cookie:переменная=<br>
103: #$cookie:переменная2[test тест ТЕСТ3]
104: =$cookie:переменная2=<br>
1.365 parser 105:
106: @response[]
107: #^if($form:reload){
108: $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
109: #}
1.364 parser 110:
111: @xslt[]
112: ^xdata[]
1.375 parser 113: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.364 parser 114:
115: @regexp2[]
116: $s[ select]
117: $s[^s.match[^^\s*][]{!}]
118: $s
119:
120: @header[]
121: $response:refresh[
122: $.value[0]
123: $.url[http://design.ru?a=^taint[123]]
124: ]
125:
126: @ttablerem[]
127: $table[^table::load[a.cfg]]
128: ^table.menu{$table.a}
129:
130: @tconnect[]
131: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
132: $tables[^table::sql{show tables}]
133: #$cols[^tables.columns[]]
134: #$cols.column
135: ^tables.menu{
136: $tables.[Tables_in_test]<br>
137: }
138: }
139:
140: @pcre[]
141: $s[1 2]
142: ^s.match[\s;ig]{!}
143: #^s.match[\d;ig]{!}
144:
145:
146: @regexp[]
147: $s[abcАБВ]
148: ^if(^s.match[б][i]){y}{n}
149:
150: @mail[]
151: #$ORIGINS(1)
152: ^mail:send[
153: $.from[paf@design.ru]
154: $.to[paf@design.ru]
155: $.body[1
156:
157: 2
158:
159:
160: 3]
161: ]
162:
163: @exec[]
1.370 parser 164: $a[^file::exec[fc.exe;;a;b]]
1.364 parser 165: $a.status|$a.stderr<hr>
166:
167: @fori[][i]
168: ^for[i](1;3){... =$i= ...}
169:
170: @xdata[]
171: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
172: $xdoc[^xdoc::load[input.xml]]
173:
174: @xml[]
175: ^xdata[]
176:
177: ^show-xdoc2[$xdoc]<hr>
178: #^show-xnode1[$xdoc]<hr>
179: $people[^xdoc.select[*/man]]
180: #^show1[]
181: ^show-xnodes1[$people]<hr>
182: #^people.0.owner.hren[]
183:
184: ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
185:
186: by id:
187: ^show-xnode1[^xdoc.getElementById[1];0;1]
188: <hr>
189:
190: @show1[array]
191: ^for[i](0;^array._count[]-1){
192: $x[$array.$i]
193: $x.firstChild.nodeValue:
194: $pattributes[$x.parentNode.attributes]
195: ^if(^pattributes._count[]){
196: $pattributes.id.name=$pattributes.id.nodeValue
197: }
198: <br>
199: }
200:
201: @show-xnodes1[array][i]
202: ^for[i](0;^array._count[]-1){
203: ^show-xnode1[$array.$i;0;1]
204: }
205:
206: @show-xnode1[x;level;single][l]
207: ^if(def $x){
208: ^for[l](0;$level-1){ ^; ^; ^; ^;}
209: ^if($x.nodeType == $xnode:ELEMENT_NODE){
210: <^;$x.nodeName
211: $pairs[$x.attributes]
212: ^if(def $pairs){
213: $names[^pairs._keys[]]
214: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
215: }
216: >^;
217: }{
218: [$x.nodeType]
219: }
220:
221: ^if(def $x.nodeValue){$x.nodeValue}<br>
222: ^show-xnode1[$x.firstChild]($level+1)
223: ^if(!$single){
224: ^show-xnode1[$x.nextSibling]($level)
225: }
226:
227: ^if($x.nodeType == $xnode:ELEMENT_NODE){
228: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
229: }
230: }
231:
232: @show-xdoc2[xdoc]
233: ^xdoc.save[save.xml;
234: # $.encoding[windows-1251]
235: $.method[xml]
236: ]
237: $file[^xdoc.file[
238: # $.encoding[windows-1251]
239: $.method[html]
240: ]]
241: ^file.save[text;save_file.html]
242: <pre>^taint[^xdoc.string[]]</pre>
243: # $.encoding[windows-1251]
244: # $.method[xml]
245: #]]
E-mail: