What is KDL?
mainKDL is a document language with XML-like node semantics designed to look like CLI command invocations. It serves as both a serialization format and a configuration language, similar to JSON, YAML, or XML. It supports nodes with standalone values, key/value pairs, multi-line strings (including raw and dedented versions), and comments.
package {
name my-pkg
version "1.2.3"
dependencies {
lodash "^3.2.1" optional=#true alias=underscore
}
scripts {
message """
hello
world
"""
build #"""
echo "foo"
node -c "console.log('hello, world!');"
echo "foo" > some-file.txt
"""#
}
the-matrix 1 2 3 \
4 5 6 \
7 8 9
/-this-is-commented {
this entire node {
is gone
}
}
}