@@ -99,13 +99,14 @@ func prepareStdlib(g *typeGraph) {
99
99
100
100
// Parsing
101
101
102
- "parseInt" : g .newSimpleFuncType (numberType , "str" ),
103
- "parseOctal" : g .newSimpleFuncType (numberType , "str" ),
104
- "parseHex" : g .newSimpleFuncType (numberType , "str" ),
105
- "parseJson" : g .newSimpleFuncType (jsonType , "str" ),
106
- "parseYaml" : g .newSimpleFuncType (jsonType , "str" ),
107
- "encodeUTF8" : g .newSimpleFuncType (numberArrayType , "str" ),
108
- "decodeUTF8" : g .newSimpleFuncType (stringType , "arr" ),
102
+ "parseInt" : g .newSimpleFuncType (numberType , "str" ),
103
+ "parseOctal" : g .newSimpleFuncType (numberType , "str" ),
104
+ "parseHex" : g .newSimpleFuncType (numberType , "str" ),
105
+ "parseJson" : g .newSimpleFuncType (jsonType , "str" ),
106
+ "parseYaml" : g .newSimpleFuncType (jsonType , "str" ),
107
+ "parseXmlJsonml" : g .newSimpleFuncType (jsonType , "str" ),
108
+ "encodeUTF8" : g .newSimpleFuncType (numberArrayType , "str" ),
109
+ "decodeUTF8" : g .newSimpleFuncType (stringType , "arr" ),
109
110
110
111
// Manifestation
111
112
@@ -145,10 +146,10 @@ func prepareStdlib(g *typeGraph) {
145
146
"maxArray" : g .newFuncType (anyArrayType , []ast.Parameter {required ("arr" ), optional ("keyF" )}),
146
147
"contains" : g .newSimpleFuncType (boolType , "arr" , "elem" ),
147
148
// TODO these need test cases written by someone who understands how to make them
148
- "all" : g .newSimpleFuncType (boolArrayType , "arr" ),
149
- "any" : g .newSimpleFuncType (boolArrayType , "arr" ),
150
- "remove" : g .newSimpleFuncType (anyArrayType , "arr" , "elem" ),
151
- "removeAt" : g .newSimpleFuncType (anyArrayType , "arr" , "i" ),
149
+ "all" : g .newSimpleFuncType (boolArrayType , "arr" ),
150
+ "any" : g .newSimpleFuncType (boolArrayType , "arr" ),
151
+ "remove" : g .newSimpleFuncType (anyArrayType , "arr" , "elem" ),
152
+ "removeAt" : g .newSimpleFuncType (anyArrayType , "arr" , "i" ),
152
153
153
154
// Sets
154
155
0 commit comments