Annotation of parser3/tests/results/auto.p, revision 1.26
1.2 misha 1: @conf[filespec]
2: $CHARSETS[
3: $.windows-1251[../etc/parser3.charsets/windows-1251.cfg]
4: ]
5:
1.3 misha 6: $CLASS_PATH[^table::create{path
7: /
8: /tests
9: }]
10:
1.7 moko 11: $NO_PROTOTYPE[
1.8 moko 12: $.[336.html][yes]
13: $.[225.html][yes]
14: $.[051.html][yes]
1.7 moko 15: ]
16:
17: ^if(def $NO_PROTOTYPE.[$env:PATH_TRANSLATED]){
18: $OBJECT-PROTOTYPE(false)
19: }
1.2 misha 20:
1.8 moko 21: ^if($env:PATH_TRANSLATED eq '357.html'){
1.9 moko 22: $LIMITS[
23: $.max_loop(50)
1.22 moko 24: $.max_recursion(50)
1.9 moko 25: ]
1.8 moko 26: }
27: ^if($env:PATH_TRANSLATED eq '358.html'){
1.9 moko 28: $LIMITS[
29: $.max_loop(0)
30: $.max_recoursion(0)
31: ]
1.8 moko 32: }
1.15 moko 33: ^if($env:PATH_TRANSLATED eq '380.html' || $env:PATH_TRANSLATED eq '394-curl.html' ){
1.10 moko 34: $LIMITS[
35: $.max_file_size(10000)
36: ]
37: }
1.8 moko 38:
1.16 moko 39: ^if($env:PATH_TRANSLATED eq '403.html'){
40: $MIME-TYPES[^table::create{ext mime-type
41: txt text/plain
42: html text/html
43: }]
44: }
45:
1.17 moko 46: ^if($env:PATH_TRANSLATED eq '409.html'){
47: $LOCALS(true)
48: }
49:
50: ^if($env:PATH_TRANSLATED eq '410.html'){
51: $CLASS-GETTER-PROTECTED(false)
52: }
1.5 misha 53:
1.26 ! moko 54: ^if($env:PATH_TRANSLATED eq '449.html'){
! 55: $LIMITS[
! 56: $.max_array_size(1000)
! 57: ]
! 58: }
! 59:
1.24 moko 60: ^os[;]{ ^curl:options[ $.library[libcurl.4.dylib] ] }
61:
1.1 paf 62: @auto[]
1.4 misha 63:
64:
1.6 misha 65: @try-catch[jCode]
66: ^try{$jCode}{
67: $exception.handled(true)
1.21 moko 68: Exception type: $exception.type,
1.6 misha 69: Source: $exception.source,
1.19 moko 70: Comment: ^taint[as-is;$exception.comment]
1.6 misha 71: }
72:
73:
1.23 moko 74: @try-catch-filtered[jCode;limit]
75: ^try{$jCode}{
76: $exception.handled(true)
77: Exception type: $exception.type,
78: Source: $exception.source^if(def $limit){,
79: Comment: ^exception.comment.left($limit)}
80: }
81:
82:
1.20 moko 83: @try-catch-comment[jCode]
84: ^try{$jCode}{
85: $exception.handled(true)
86: Exception: ^taint[as-is;$exception.comment]
87: }
88:
89:
1.5 misha 90: @1251[]
91: ^from-1251[]
92: ^to-1251[]
93:
94:
95: @from-1251[]
1.4 misha 96: $request:charset[windows-1251]
1.5 misha 97:
98:
99: @to-1251[]
1.4 misha 100: $response:charset[windows-1251]
1.5 misha 101:
102:
103: # backward
104: @windows-1251[]
105: ^1251[]
1.11 moko 106:
1.24 moko 107: @os[win;unix;mac][name]
1.12 moko 108: $name[^env:OS.left(7)]
1.25 moko 109: $result[^if(^name.lower[] eq 'windows'){$win}{^if(^env:HOME.left(6) eq '/Users' && def $mac){$mac;$unix}}]
E-mail: