Annotation of parser3/tests/253.html, revision 1.10

1.1       moko        1: @main[]
                      2: 
1.3       moko        3: $f[^file::load[text;253_json.txt; $.charset[windows-1251]]]
1.2       moko        4: $s[^taint[as-is][$f.text]]
1.1       moko        5: 
1.9       moko        6: ^try-catch{$o[^json:parse[$s; $.array[hash] ]]}
1.2       moko        7: 
1.10    ! moko        8: ^try-catch{$o[^json:parse[$s; $.depth(2) ]]}
        !             9: 
        !            10: ^try-catch{$o[^json:parse[$s; $.distinct[bug] ]]}
        !            11: 
1.9       moko       12: ^test[$s][ $.object[$hook] $.distinct[first] ]
1.2       moko       13: 
1.9       moko       14: ^test[$s][ $.double(false) $.distinct[last] ]
1.1       moko       15: 
1.9       moko       16: ^test[$s][ $.int(false) $.distinct[last] ]
1.7       misha      17: 
1.9       moko       18: ^test[$s][ $.object[$hook_key] $.distinct[all] ]
1.1       moko       19: 
1.5       moko       20: $s[[1,{"type":"class1","value":"3"},4]]
                     21: 
1.9       moko       22: ^test[$s][ $.object[$hook] ]
                     23: 
                     24: ^test[$s]
1.5       moko       25: 
1.9       moko       26: @test[s;options]
                     27: $o[^json:parse[$s][ $options $.array[hash] ]]
1.5       moko       28: ^print[$o]
                     29: 
1.1       moko       30: @print[hash]
1.8       moko       31: $result[^json:string[$hash; $.indent(1)]]
                     32: $result[^result.replace[e+0;e+]]
1.1       moko       33: 
                     34: @hook[key;value]
                     35: $result[^if(def $value.type){^reflection:create[$value.type;create;$value]}{$value}]
                     36: 
1.4       moko       37: @hook_key[key;value]
                     38: $result[^if($key eq 'object'){^reflection:create[$value.type;create;$value]}{$value}]
                     39: 
1.1       moko       40: @CLASS
                     41: class1
                     42: 
                     43: @create[h]
1.3       moko       44: $value[class1 $h.value]
1.1       moko       45: 
                     46: @CLASS
                     47: class2
                     48: 
                     49: @create[h]
1.3       moko       50: $value[class2 $h.value]

E-mail: