- Modelo de objetos Cat_Value + vtable (interfaces abstratas) - VM de bytecode, sem GIL (VM por-thread, nativas como valores) - Stdlib com TOML embutido (toml_parse/toml_encode) - Família de arquivos: AbstractFile (abstrata), File::open, StringIO, BytesIO - Front-end (lexer/parser/checker/compiler) implementado em catscript - cpk (cat package manager) como primeiro programa; manifest package.toml - Type hints advisory, inclusive DynSized() e sentinel_sized<...> - 25/25 testes passando (make test)
8 lines
223 B
Plaintext
8 lines
223 B
Plaintext
-- examples/toml.cat -- the standard library TOML parser in action.
|
|
|
|
local doc = toml_parse("title = \"catscript\"\nversion = 1\npi = 3.14\n")
|
|
|
|
print("title:", doc.title)
|
|
print("version:", doc.version)
|
|
print("pi:", doc.pi)
|