feat(kdl): add KDL parser producing AST

This commit is contained in:
2026-08-28 20:53:45 -04:00
parent 15f8e1a61b
commit 88d78990d5
4 changed files with 1431 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/* Parser fixture: a realistic multi-node build file exercising node names,
arguments, properties, children blocks, comments, a slashdash, and
semicolon separators. Parsed by tests/unit/test_parser.c against an
exact expected AST (counts, order, nesting, spans). */
// top-level line comment
project name="stupidtools" version="1.0.0"
target "default" {
src "src/main.c" ; src "src/kdl/lexer.c"
cc-flags "-std=c23" "-Wall" // pinned warning flags
jobs 8
optimize #true debug=#false
feature "unit-tests" {
option "munit" { default #true }
}
}
/-
(meta)credits "huntedbytheirs"