Skip to content

Commit 43c3f09

Browse files
committed
docs: add KDL v2 example files
1 parent eeba1a9 commit 43c3f09

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

examples/16-kdl-v2-literals.kdl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// KDL v2-style booleans, null, and keyword-like numbers.
2+
3+
enabled #true
4+
disabled #false
5+
empty #null
6+
7+
limits #inf #-inf #nan

examples/17-kdl-v2-strings.kdl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// KDL v2-style multiline and raw string forms.
2+
3+
( "tag" ) "quoted node" key = #true
4+
5+
raw-string #"hello, world"#
6+
7+
multi-line """
8+
hello
9+
world
10+
"""
11+
12+
raw-multi-line #"""
13+
raw
14+
multiline
15+
string
16+
"""#

0 commit comments

Comments
 (0)