@@ -99,13 +99,14 @@ func prepareStdlib(g *typeGraph) {
9999
100100 // Parsing
101101
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" ),
109110
110111 // Manifestation
111112
@@ -145,10 +146,10 @@ func prepareStdlib(g *typeGraph) {
145146 "maxArray" : g .newFuncType (anyArrayType , []ast.Parameter {required ("arr" ), optional ("keyF" )}),
146147 "contains" : g .newSimpleFuncType (boolType , "arr" , "elem" ),
147148 // 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" ),
152153
153154 // Sets
154155
0 commit comments