static Map parsePrimitiveType_map = litmap( "int" := int.class, "char" := char.class, "byte" := byte.class, "short" := short.class, "long" := long.class, "float" := float.class, "double" := double.class, "bool" := bool.class); static Class parsePrimitiveType(S s) { ret parsePrimitiveType_map.get(s); }