mini-yaml icon indicating copy to clipboard operation
mini-yaml copied to clipboard

sequence interpreted as string

Open kuangdai opened this issue 5 years ago • 1 comments

According to YMAL standard, I think the following node

foo: [1, 2, 3]

should be interpreted as a sequence, while mini-ymal interprets it as a string "[1, 2, 3]".

Is this easy to fix?

BTW: can you move #include to YAML.cpp? This is a heavy header.

kuangdai avatar Apr 04 '20 04:04 kuangdai

@kuangdai

According to YMAL standard, I think the following node

foo: [1, 2, 3]

should be interpreted as a sequence, while mini-ymal interprets it as a string "[1, 2, 3]".

Is this easy to fix?

I've not been maintaining mini-yaml for a while, due to lack of time and time spent on other projects. Anyway, I've been planning to rewrite the parser, to use a state machine design instead of the current brute force parsing. It would probably require some work to implement json-like sequences in mini-yaml's current state.

BTW: can you move #include to YAML.cpp? This is a heavy header.

What "#include" are you referring to?

jimmiebergmann avatar Apr 19 '20 02:04 jimmiebergmann