diff --git a/index.html b/index.html index 8c8e044..6981a6e 100644 --- a/index.html +++ b/index.html @@ -38,6 +38,7 @@ Language loosely based on JSON Schema.

The language is based on SDLang, with a number of modifications and clarifications on its syntax and behavior.

+

The current version of the KDL spec is 1.0.0.

Overview

@@ -120,6 +121,15 @@ comment out individual nodes, arguments, or children:

a b } +

Type Annotations

+

KDL supports type annotations on both values and nodes. These can be +arbitrary, but can be used by individual implementations or use-cases to +constrain KDL's basic types. A number of type names are also reserved to have +specific meanings.

+
numbers (u8)10 (i32)20 myfloat=(f32)1.5 {
+  strings (uuid)"123e4567-e89b-12d3-a456-426614174000" (date)"2021-02-03" filter=(regex)r"$\d+"
+  (author)person name="Alex"
+}

More Details

// Nodes can be separated into multiple lines
 title \
@@ -137,7 +147,7 @@ comment out individual nodes, arguments, or children:

foo123~!@#$%^&*.:'|/?+ "weeee" // And you can also use unicode! -ノード お名前"☜(゚ヮ゚☜)" +ノード お名前="☜(゚ヮ゚☜)" // kdl specifically allows properties and values to be // interspersed with each other, much like CLI commands.