bobzhang/p5/io does not have a README file
pub struct Table {
// private fields
}pub struct TableRow {
// private fields
}pub struct Xml {
// private fields
}test {
let x = @io.Xml::parse(
"<animals><mammal id=\"0\" species=\"Panthera\">Goat</mammal></animals>",
)
inspect(x.get_name(), content="animals")
let m = x.get_child_by_name("mammal").unwrap()
inspect(m.get_content().unwrap_or(""), content="Goat")
inspect(m.get_num("id"), content="0")
inspect(
x.serialize(),
content="<animals><mammal id=\"0\" species=\"Panthera\">Goat</mammal></animals>",
)
}test {
debug_inspect(
@io.parse_csv("a,\"b,c\",\"d\"\"e\"\n1,2,3\n"),
content=(
#|[["a", "b,c", "d\"e"], ["1", "2", "3"]]
),
)
}fn parse_float(s : String) -> DoubleInstall
Download zipA port of p5.js 2.x to MoonBit (JS backend): 2D canvas and WEBGL, fonts, SVG, GIF, shaders; pixel-identical with p5.js on its parity suite.