finally generating yaml

This commit is contained in:
2025-08-31 12:52:03 +02:00
parent 71fa80acba
commit f1be675f10
4 changed files with 128 additions and 98 deletions

28
yaml_finish.lsp Normal file
View File

@@ -0,0 +1,28 @@
(:macro dict-key ( x )
(':str-cat x ":"))
(:macro yot ( x )
x)
(:macro tree ( a b )
(':reduce-cat a "\n" b))
(:macro c-paren-eval (x)
(':c-not (':c-colon-id x)))
(:macro @ ( (x(:c-paren-eval _)) .. tl )
(':reduce-cat x tl ))
(:macro reduce-cat ( x )
x)
(:macro reduce-cat ( x .. tl )
(':str-cat x
(':reduce-cat tl)))
(:macro cfg ( )
"")
(:macro cfg ( x )
x)
(:macro cfg ( x .. tl )
(':tree x (':cfg tl)))