Polsia is a small experimental data language parser written in Rust using the chumsky parser combinator library.
#comments- trailing commas in arrays and objects
- unquoted identifiers as keys
- optional commas and braces for single objects
- chained keys like
foo: bar: 1for nested objects - basic type annotations (
Int,Float,String,Boolean,Any,Nothing)
# simple object without braces
foo: 1
bar: [1, 2, 3,]
# using types and chains
person: {
name: String,
}
person: name: "Jane"
Run the formatter, lints and tests:
just testThe playground is a small React application in the playground/ directory built with Vite.
To run it locally:
just playground devThe site will be available at the URL printed by Vite (usually http://localhost:5173/polsia/).