8 Commits

Author SHA1 Message Date
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