12 Commits

Author SHA1 Message Date
f431f7aa1c
build: update for zig-0.13 2024-06-18 12:48:32 -07:00
a9f2298132
fix useless var
Unlike lists, this isn't mutated for maps because there's no
intermediate builder object being used for maps (lists are assembled
with an ArrayList, after which they are converted to plain slices).
2024-05-12 18:49:22 -07:00
2b643c5221
build: update for zig-0.12.0 2024-05-12 18:45:27 -07:00
27667032e1
make naming more consistent 2024-03-08 23:46:43 -08:00
259c22999c
example: output JSON
this works a lot better than the very bad dump function I had before.
The output isn't pretty printed but can easily be made so by piping it
to jq, for example.
2024-03-08 10:50:21 -08:00
ab0202a5f7
yaml.Value: add basic JSON emitting
This is quite useful for checking yaml document structure.
2024-03-08 10:49:29 -08:00
cf21c48771
build: extract example executable from default target 2024-03-07 22:33:57 -08:00
5e3f2e0f91
read me 2024-03-07 22:19:37 -08:00
cdf2ec5a23
reorganize and add parsing diagnostics 2024-03-07 22:19:16 -08:00
1ecfb41d55
libyaml: basic functional event-based parser 2024-03-07 22:19:16 -08:00
11e8fad44e
git subrepo clone --branch=0.2.5 https://github.com/yaml/libyaml.git deps/libyaml
subrepo:
  subdir:   "deps/libyaml"
  merged:   "2c891fc"
upstream:
  origin:   "https://github.com/yaml/libyaml.git"
  branch:   "0.2.5"
  commit:   "2c891fc"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
2024-03-07 22:19:16 -08:00
ca1fdb053d
init
handroll some libyaml bindings.

I was originally going to use yaml-cpp, but C++ sucks tremendously and
looking at the libyaml documentation, the event-based parser API
probably works the way I want it to so let's try it out.
2024-03-07 22:19:16 -08:00