mirror of https://github.com/kdl-org/kdl.git
parent
56f399bf71
commit
b51859edf3
|
|
@ -10,9 +10,6 @@
|
||||||
* Single line comments (`//`) can now be immediately followed by a newline.
|
* Single line comments (`//`) can now be immediately followed by a newline.
|
||||||
* All literal whitespace following a `\` in a string is now discarded.
|
* All literal whitespace following a `\` in a string is now discarded.
|
||||||
* Vertical tabs (`U+000B`) are now considered to be whitespace.
|
* Vertical tabs (`U+000B`) are now considered to be whitespace.
|
||||||
* Identifiers can't start with `r#`, so they're easy to distinguish from raw
|
|
||||||
strings. (They already similarly can't start with a digit, or a sign+digit,
|
|
||||||
so they're easy to distinguish from numbers.)
|
|
||||||
* The grammar syntax itself has been described, and some confusing definitions
|
* The grammar syntax itself has been described, and some confusing definitions
|
||||||
in the grammar have been fixed accordingly (mostly related to escaped
|
in the grammar have been fixed accordingly (mostly related to escaped
|
||||||
characters).
|
characters).
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "\"\\\b\f\n\r\t"
|
node "\"\\\b\f\n\r\t\s"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
node "arg" prop="val" {
|
node arg prop=val {
|
||||||
inner_node
|
inner_node
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg" arg="val"
|
node arg arg=val
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)false
|
node (type)#false
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)null
|
node (type)#null
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"str"
|
node (type)str
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"str"
|
node (type)str
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)true
|
node (type)#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"arg"
|
node (type)arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
😁 "happy!"
|
😁 happy!
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=("")true
|
node key=("")#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node arg
|
||||||
|
|
@ -1 +1 @@
|
||||||
node false true
|
node #false #true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node prop1=true prop2=false
|
node prop1=#true prop2=#false
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
foo123<bar>foo weeee
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
foo123,bar weeee
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
node1
|
||||||
|
node2
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg2"
|
node arg2
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node --
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "😀"
|
node 😀
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
"" "arg"
|
"" arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg" "arg2\n"
|
node arg arg2
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg1" "arg2"
|
node arg1 arg2
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node "\nhey\neveryone\nhow goes?\n"
|
||||||
|
|
@ -1 +1 @@
|
||||||
node " hey\neveryone\nhow goes?\n"
|
node "\nhey\neveryone\nhow goes?\n"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node false
|
node #false
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node true
|
node #true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node prop=null
|
node prop=#null
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
node {
|
||||||
|
foo
|
||||||
|
bar
|
||||||
|
baz
|
||||||
|
}
|
||||||
|
|
@ -1 +1 @@
|
||||||
node 1 1.0 1.0E+10 1.0E-10 1 7 2 "arg" "arg\\\\" true false null
|
node 1 1.0 1.0E+10 1.0E-10 1 7 2 arg arg "arg\\" #true #false #null
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)false
|
node key=(type)#false
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
node key=(type)str
|
||||||
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)null
|
node key=(type)#null
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)"str"
|
node key=(type)str
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)"str"
|
node key=(type)str
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)true
|
node key=(type)#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)true
|
node key=(type)#true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node ?15
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "0prop"="val"
|
node "0prop"=val
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=("type/")true
|
node key=("type/")#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
r "arg"
|
r arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)true
|
node (type)#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=(type)true
|
node key=(type)#true
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
node_1 "arg\\n"
|
node_1 "\"arg\\n\"and #stuff"
|
||||||
node_2 "\"arg\\n\"and stuff"
|
node_2 "#\"arg\\n\"#and #stuff"
|
||||||
node_3 "#\"arg\\n\"#and stuff"
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
node_1 prop="arg\\n"
|
node_1 prop="\"arg#\"\\n"
|
||||||
node_2 prop="\"arg\"\\n"
|
node_2 prop="#\"arg#\"#\\n"
|
||||||
node_3 prop="#\"arg\"#\\n"
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg" "arg"
|
node arg arg
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
node "whee" "whee"
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node prop="val"
|
node prop=val
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg2"
|
node arg2
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node arg="correct"
|
node arg=correct
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node (type)10
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
(type)node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node key=(type)#false
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node foo=bar
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node (type)#false
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
(type)node
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node key=(type)#false
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg"
|
node arg
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node "Hello World Stuff"
|
||||||
|
|
@ -1 +1 @@
|
||||||
node prop="val"
|
node prop=val
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node _15
|
||||||
|
|
@ -1 +1 @@
|
||||||
foo123~!@#$%^&*.:'|?+ "weeee"
|
foo123~!@#$%^&*.:'|?+<>, weeee
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
foo123~!@#$%^&*.:'|?+ "weeee"
|
foo123~!@#$%^&*.:'|?+<>, weeee
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node arg
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "\"\\\b\f\n\r\t"
|
node "\"\\\b\f\n\r\t\s"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
node "arg" prop="val" {
|
node arg prop=val {
|
||||||
inner_node
|
inner_node
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node "arg" arg="val"
|
node arg arg=val
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node a
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)false
|
node (type)#false
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)null
|
node (type)#null
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"str"
|
node (type)#"str"#
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"str"
|
node (type)"str"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)true
|
node (type)#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node (type)"arg"
|
node (type)arg
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
foo123\bar "weeee"
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
😁 "happy!"
|
😁 happy!
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node key=("")true
|
node key=("")#true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node /* comment */ "arg"
|
node /* comment */ arg
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node /* hey */ "arg"
|
node /* hey */ arg
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node arg
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
node arg
|
||||||
|
|
@ -1 +1 @@
|
||||||
node false true
|
node #false #true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
node prop1=true prop2=false
|
node prop1=#true prop2=#false
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
foo123{bar}foo "weeee"
|
foo123{bar}foo weeee
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
foo123<bar>foo "weeee"
|
foo123<bar>foo weeee
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
foo123,bar "weeee"
|
foo123,bar weeee
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
node1 //
|
||||||
|
node2
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue