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