mirror of https://github.com/kdl-org/kdl.git
Script updating gh-pages from ee79f9f. [ci skip]
This commit is contained in:
parent
9c63a1babd
commit
25ef01cfae
|
|
@ -20,13 +20,13 @@ oficial version of the language, see https://kdl.dev/spec.
|
|||
|
||||
|
||||
" name="description">
|
||||
<meta content="xml2rfc 3.25.0" name="generator">
|
||||
<meta content="xml2rfc 3.27.0" name="generator">
|
||||
<meta content="Document-Language" name="keyword">
|
||||
<meta content="Configuration" name="keyword">
|
||||
<meta content="draft-marchan-kdl2-latest" name="ietf.draft">
|
||||
<!-- Generator version information:
|
||||
xml2rfc 3.25.0
|
||||
Python 3.12.8
|
||||
xml2rfc 3.27.0
|
||||
Python 3.12.9
|
||||
ConfigArgParse 1.7
|
||||
google-i18n-address 3.1.1
|
||||
intervaltree 3.1.0
|
||||
|
|
@ -447,7 +447,7 @@ dl {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
dl > dt {
|
||||
dl:not(.dlNewline) > dt {
|
||||
float: left;
|
||||
margin-right: 2ch;
|
||||
min-width: 8ch;
|
||||
|
|
@ -1056,7 +1056,7 @@ svg :is([fill="white"], [fill^="#fff"]) {
|
|||
<thead><tr>
|
||||
<td class="left"></td>
|
||||
<td class="center">KDL</td>
|
||||
<td class="right">January 2025</td>
|
||||
<td class="right">February 2025</td>
|
||||
</tr></thead>
|
||||
<tfoot><tr>
|
||||
<td class="left">Marchán & KDL Contributors</td>
|
||||
|
|
@ -1071,7 +1071,7 @@ svg :is([fill="white"], [fill^="#fff"]) {
|
|||
<dd class="workgroup">KDL Community</dd>
|
||||
<dt class="label-published">Published:</dt>
|
||||
<dd class="published">
|
||||
<time datetime="2025-01-29" class="published">29 January 2025</time>
|
||||
<time datetime="2025-02-18" class="published">18 February 2025</time>
|
||||
</dd>
|
||||
<dt class="label-authors">Authors:</dt>
|
||||
<dd class="authors">
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
KDL Community K. Marchán
|
||||
Microsoft
|
||||
KDL Contributors
|
||||
29 January 2025
|
||||
18 February 2025
|
||||
|
||||
|
||||
The KDL Document Language
|
||||
|
|
|
|||
37
index.html
37
index.html
|
|
@ -25,22 +25,6 @@
|
|||
</tr>
|
||||
</table>
|
||||
<h2>Preview for branch <a href="zkat">zkat</a></h2>
|
||||
<h2>Preview for branch <a href="zkat/utf-8-must">zkat/utf-8-must</a></h2>
|
||||
<table id="branch-zkat/utf-8-must">
|
||||
<tr>
|
||||
<td><a href="zkat/utf-8-must/draft-marchan-kdl2.html" class="html draft-marchan-kdl2" title="The KDL Document Language (HTML)">KDL</a></td>
|
||||
<td><a href="zkat/utf-8-must/draft-marchan-kdl2.txt" class="txt draft-marchan-kdl2" title="The KDL Document Language (Text)">plain text</a></td>
|
||||
<td><a href="https://author-tools.ietf.org/api/iddiff?url_1=https://kdl-org.github.io/kdl/draft-marchan-kdl2.txt&url_2=https://kdl-org.github.io/kdl/zkat/utf-8-must/draft-marchan-kdl2.txt" class="diff draft-marchan-kdl2">diff with main</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Preview for branch <a href="zkat/schema-v2">zkat/schema-v2</a></h2>
|
||||
<table id="branch-zkat/schema-v2">
|
||||
<tr>
|
||||
<td><a href="zkat/schema-v2/draft-marchan-kdl2.html" class="html draft-marchan-kdl2" title="The KDL Document Language (HTML)">KDL</a></td>
|
||||
<td><a href="zkat/schema-v2/draft-marchan-kdl2.txt" class="txt draft-marchan-kdl2" title="The KDL Document Language (Text)">plain text</a></td>
|
||||
<td><a href="https://author-tools.ietf.org/api/iddiff?url_1=https://kdl-org.github.io/kdl/draft-marchan-kdl2.txt&url_2=https://kdl-org.github.io/kdl/zkat/schema-v2/draft-marchan-kdl2.txt" class="diff draft-marchan-kdl2">diff with main</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Preview for branch <a href="zkat/fix-stuff">zkat/fix-stuff</a></h2>
|
||||
<table id="branch-zkat/fix-stuff">
|
||||
<tr>
|
||||
|
|
@ -57,11 +41,22 @@
|
|||
<td><a href="https://author-tools.ietf.org/api/iddiff?url_1=https://kdl-org.github.io/kdl/draft-marchan-kdl2.txt&url_2=https://kdl-org.github.io/kdl/zkat/minor-tweaks/draft-marchan-kdl2.txt" class="diff draft-marchan-kdl2">diff with main</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Preview for branch <a href="tests">tests</a></h2>
|
||||
<h2>Preview for branch <a href="tests/test_cases">tests/test_cases</a></h2>
|
||||
<h2>Preview for branch <a href="tests/test_cases/expected_kdl">tests/test_cases/expected_kdl</a></h2>
|
||||
<h2>Preview for branch <a href="tests/test_cases/input">tests/test_cases/input</a></h2>
|
||||
<h2>Preview for branch <a href="tests/benchmarks">tests/benchmarks</a></h2>
|
||||
<h2>Preview for branch <a href="zkat/schema-v2">zkat/schema-v2</a></h2>
|
||||
<table id="branch-zkat/schema-v2">
|
||||
<tr>
|
||||
<td><a href="zkat/schema-v2/draft-marchan-kdl2.html" class="html draft-marchan-kdl2" title="The KDL Document Language (HTML)">KDL</a></td>
|
||||
<td><a href="zkat/schema-v2/draft-marchan-kdl2.txt" class="txt draft-marchan-kdl2" title="The KDL Document Language (Text)">plain text</a></td>
|
||||
<td><a href="https://author-tools.ietf.org/api/iddiff?url_1=https://kdl-org.github.io/kdl/draft-marchan-kdl2.txt&url_2=https://kdl-org.github.io/kdl/zkat/schema-v2/draft-marchan-kdl2.txt" class="diff draft-marchan-kdl2">diff with main</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Preview for branch <a href="zkat/utf-8-must">zkat/utf-8-must</a></h2>
|
||||
<table id="branch-zkat/utf-8-must">
|
||||
<tr>
|
||||
<td><a href="zkat/utf-8-must/draft-marchan-kdl2.html" class="html draft-marchan-kdl2" title="The KDL Document Language (HTML)">KDL</a></td>
|
||||
<td><a href="zkat/utf-8-must/draft-marchan-kdl2.txt" class="txt draft-marchan-kdl2" title="The KDL Document Language (Text)">plain text</a></td>
|
||||
<td><a href="https://author-tools.ietf.org/api/iddiff?url_1=https://kdl-org.github.io/kdl/draft-marchan-kdl2.txt&url_2=https://kdl-org.github.io/kdl/zkat/utf-8-must/draft-marchan-kdl2.txt" class="diff draft-marchan-kdl2">diff with main</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var referrer_branch = 'main';
|
||||
|
|
|
|||
|
|
@ -1,60 +0,0 @@
|
|||
# Full Document Test Cases
|
||||
|
||||
The `input` folder contains test cases for KDL parsers. The `expected_kdl`
|
||||
folder contains files with the same name as those in `input` with the expected
|
||||
output after being run through the parser and printed out again.
|
||||
|
||||
If a testcase is intended to fail parsing,
|
||||
the `input` file _MUST_ have a `_fail` suffix,
|
||||
and there must be no corresponding file in `expected_kdl`.
|
||||
|
||||
## Translation Rules
|
||||
|
||||
By necessity, the files in `expected_kdl` are not identical to their
|
||||
corresponding inputs. They are instead pretty-printed according to the
|
||||
following rules:
|
||||
|
||||
* All comments removed
|
||||
* Extra empty lines removed except for a newline after the last node
|
||||
* All nodes should be reformatted without escaped newlines
|
||||
* Node fields should be `identifier <values> <properties> <children only if non-empty>`
|
||||
* All values and all children must be in the same order as they were defined.
|
||||
* Properties must be in _alphabetical order_ and separated by a single space.
|
||||
* All strings must be represented as regular strings, with appropriate escapes
|
||||
for invalid bare characters. That means that raw strings must be converted
|
||||
to plain strings, and escaped.
|
||||
* Any literal newlines or other ascii escape characters in escaped strings
|
||||
replaced with their escape sequences.
|
||||
* All identifiers must be unquoted unless they _must_ be quoted. That means
|
||||
`"foo"` becomes `foo`, and `"foo bar"` stays that way.
|
||||
* Any duplicate properties must be removed, with only the rightmost one
|
||||
remaining. This also means duplicate properties must be allowed.
|
||||
* 4 space indents
|
||||
* All numbers must be converted to their simplest decimal representation. That
|
||||
means that hex, octal, and binary must all be converted to decimals. All
|
||||
floats must be represented using `E` notation, with a single digit left of
|
||||
the decimal point if the float is less than 1. While parsers are required to
|
||||
_consume_ different number syntaxes, they are under no obligation to
|
||||
represent numbers in any particular way.
|
||||
|
||||
Data may be manipulated as you wish in order to output the expected KDL. This
|
||||
test suite verifies the ability to **parse**, not specific quirks about
|
||||
internal representations.
|
||||
|
||||
## What to do if a test fails for you
|
||||
|
||||
This test suite was originally designed for a pre-1.0 version of the KDL
|
||||
specification. If you encounter a failure, it's likely that the test suite
|
||||
will need to be updated, rather than your parser itself. This test suite is
|
||||
NOT AUTHORITATIVE. If this test suite disagrees with the KDL spec in any way,
|
||||
the most desirable resolution is to send a PR to this repository to fix the
|
||||
test itself. Likewise, if you think a test succeeded but should not have,
|
||||
please send a PR.
|
||||
|
||||
If you think the disagreement is due to a genuine error or oversight in the
|
||||
KDL specification, please open an issue explaining the matter and the change
|
||||
will be considered for the next version of the KDL spec.
|
||||
|
||||
# Benchmarks
|
||||
|
||||
The `benchmarks` folder contains some large or gnarly documents intended to be used to stress-test your parser and help with profiling. They are intentionally not part of the testsuite, and just provided for your own personal benefit.
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
node "\"\\\b\f\n\r\t "
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
node arg prop=val {
|
||||
inner_node
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg arg=val
|
||||
|
|
@ -1 +0,0 @@
|
|||
node a
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)#false
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)2.5
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)16
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)#null
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)str
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)str
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)#true
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)0
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
😁 happy!
|
||||
|
|
@ -1 +0,0 @@
|
|||
node .
|
||||
|
|
@ -1 +0,0 @@
|
|||
node +
|
||||
|
|
@ -1 +0,0 @@
|
|||
node +.
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node ("")10
|
||||
|
|
@ -1 +0,0 @@
|
|||
("")node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node key=("")#true
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node #false #true
|
||||
|
|
@ -1 +0,0 @@
|
|||
node prop1=#true prop2=#false
|
||||
|
|
@ -1 +0,0 @@
|
|||
foo123<bar>foo weeee
|
||||
|
|
@ -1 +0,0 @@
|
|||
foo123,bar weeee
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)10
|
||||
|
|
@ -1 +0,0 @@
|
|||
(type)node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node key=(type)10
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
node1
|
||||
node2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node (type)10
|
||||
|
|
@ -1 +0,0 @@
|
|||
(type)node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node key=(type)10
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node_2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node_2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
node1
|
||||
node2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node --
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 😀
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
"" arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node ""=empty
|
||||
|
|
@ -1 +0,0 @@
|
|||
node ""
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "12"
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "hello\nworld"
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "hello\nworld"
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "Hello\n\tWorld" "Hello\n\tWorld" "Hello\n\tWorld" "Hello\n\tWorld" "Hello\n\tWorld"
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
node
|
||||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
a
|
||||
b
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
parent {
|
||||
child
|
||||
child
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg arg2
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
node1
|
||||
node2
|
||||
|
|
@ -1 +0,0 @@
|
|||
(type)node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
false_id
|
||||
|
|
@ -1 +0,0 @@
|
|||
node false_id=1
|
||||
|
|
@ -1 +0,0 @@
|
|||
floats #inf #-inf #nan
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 12379813812177893520
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 207698809136909011942886895
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 737894400291
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 1
|
||||
|
|
@ -1 +0,0 @@
|
|||
another-node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 1234
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
node {
|
||||
inner_node
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 1
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 11
|
||||
|
|
@ -1 +0,0 @@
|
|||
node 1
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg
|
||||
|
|
@ -1 +0,0 @@
|
|||
node arg1 arg2
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "hey\neveryone\nhow goes?"
|
||||
|
|
@ -1 +0,0 @@
|
|||
node "\"\"\"triple-quote\"\"\"\n##\"too few quotes\"##\n#\"\"\"too few #\"\"\"#"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue