examples: add some sample documents to parse against

This commit is contained in:
torque 2023-09-24 22:25:22 -07:00
parent 1d65b072ee
commit 5037f69fbe
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk
10 changed files with 69 additions and 0 deletions

File diff suppressed because one or more lines are too long

1
examples/data/flow.nice Normal file
View File

@ -0,0 +1 @@
[flow, {test: [nest], foo: bar}]

53
examples/data/gamut.nice Normal file
View File

@ -0,0 +1,53 @@
# this is a comment
key: {my: flow, is: [totally, unstoppable , [], [ ], [{don't: you know}], { }, {:,a:}]}
bar:
key2:
- electric
- boogaloo
# comment
# commentary
keyzo: > fake string
beezo:
> this string
# with a comment
| goes on
# and another comment
> and on
> forever
qux2: {my: flow, is: unstoppable}
qux3: [my, flow, is, unstoppable]
qux4: > {my: flow, is: unstoppable}
qux5: | {my: flow, is: unstoppable}
quux:
[one, two, three]
foo:
-
-
>
| start with newline
-
|
> start with space
-
> end with newline
|
-
| end with space
>
-
bar:
-
> this string
# comment
| goes on
| and on
> forever
| testing |
> tasting |
> over
|
baz: 1
# here is a treatise on why this is a comment that follows everything else and has
# nothing following it: it seemed like a good idea at the time, so I went ahead and
# wrote it out and, well, here we are.

View File

@ -0,0 +1 @@
[1, 2, 3, four]

4
examples/data/list.nice Normal file
View File

@ -0,0 +1,4 @@
- 1
- 2
- 3
- four

View File

@ -0,0 +1 @@
{1: 2, three: four}

2
examples/data/map.nice Normal file
View File

@ -0,0 +1,2 @@
1: 2
three: four

View File

@ -0,0 +1 @@
this is a scalar

View File

@ -0,0 +1,4 @@
> this is a string
> but it does consist of multiple lines
> so it's somewhat nontrivial
>

View File

@ -0,0 +1 @@
> this is a single string