finish yaml gen

This commit is contained in:
2025-08-31 14:59:37 +02:00
parent f1be675f10
commit 8d18875697
3 changed files with 57 additions and 20 deletions

31
yaml.2.lsp Normal file
View File

@@ -0,0 +1,31 @@
(: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 ocfg ( )
"")
(:macro ocfg ( x )
x)
(:macro ocfg ( x .. tl )
(':tree x (':ocfg tl)))
(:macro indent ( x )
(':str-cat " " x))