mirror of
https://gitee.com/Lamdonn/varch.git
synced 2025-12-06 08:46:42 +08:00
108 lines
1.4 KiB
YAML
108 lines
1.4 KiB
YAML
mapping:
|
|
open: Yes
|
|
|
|
string null: string null
|
|
string null n: string null
|
|
n
|
|
|
|
string sigle: 'string sigle'
|
|
string sigle n: 'string
|
|
sigle'
|
|
|
|
string double: "string double"
|
|
string double n: "string
|
|
double"
|
|
|
|
string scalar: |
|
|
string
|
|
scalar
|
|
|
|
string scalar n: |2
|
|
string
|
|
scalar
|
|
|
|
string scalar -: |-
|
|
string
|
|
scalar
|
|
|
|
string scalar +: |+
|
|
string
|
|
scalar
|
|
|
|
|
|
|
|
|
|
|
|
string fold: >
|
|
string
|
|
fold
|
|
|
|
string fold n: >2
|
|
string
|
|
fold
|
|
|
|
string fold -: >-
|
|
string
|
|
fold
|
|
|
|
string fold +: >+
|
|
string
|
|
fold
|
|
|
|
sequence:
|
|
- file description
|
|
- This is a C language version of yaml streamlined parser
|
|
- Copyright (C) 2023 Lamdonn.
|
|
-
|
|
age: 18
|
|
weight: 75kg
|
|
number dec: 123456
|
|
number hex: 0x123456
|
|
number float: 012.3456
|
|
number e: 1.23e-4
|
|
number nan: .nan
|
|
number inf: .inf
|
|
number inf n: -.inf
|
|
|
|
Anchors:
|
|
people: &people
|
|
name: people
|
|
age: 18
|
|
height: 178
|
|
cat: &cat
|
|
name: cat
|
|
age: 2
|
|
string: &string
|
|
This is string
|
|
sequence: &sequence
|
|
- 1
|
|
- 2
|
|
|
|
Zhang San: &default
|
|
color: blue
|
|
size: medium
|
|
property: *people
|
|
|
|
Inherit:
|
|
<<: *people
|
|
# shape: circle
|
|
|
|
square brackets: [1,2,3,4]
|
|
|
|
brace brackets: {a: 1, b: 2, c: 3}
|
|
|
|
bin: -0b1010_0111_0100_1010_1110
|
|
|
|
iso8601: 2025-03-29T23:59:43.89-05:00
|
|
date: 2025-03-29
|
|
time: 2025-03-29T23:59:43
|
|
utc: 2025-03-29T23:59:43+08:00
|
|
|
|
int_22: !!int 123456
|
|
|
|
muti:
|
|
a: "AABCDEFG"
|
|
?
|
|
- a
|
|
- b
|
|
: fruit |