Skip to content

Configuration Parser โ€‹

Problem โ€‹

Config formats and small DSLs still need positions for error messages and structure for validation.

Why tree-sitter.zig helps โ€‹

Even a tiny grammar gets full positions, error recovery (report all errors, not just the first), and queries for validation rules. The bundled json_language covers JSON directly โ€” pairs expose key/value fields, so config readers navigate without manual descent (see examples/json_parse.zig).

API โ€‹

Parser, Node navigation, Query validation rules, hasError aggregation.

Architecture โ€‹

text
Parse config โ†’ collect errors via isError/isMissing โ†’ query-validate โ†’ typed values

Next steps โ€‹

Released under the MIT License.