behrang / YamlSwift

Load YAML and JSON documents using Swift
MIT License
404 stars 97 forks source link

Nested lists of objects is not supported. #40

Closed seivan closed 8 years ago

seivan commented 8 years ago
- GrandParent: 
  - Parent:
    - Child:
      - GrandChild:
        - name : "Skylar"
        - age : 12

Works on http://www.yamllint.com

This should work, the YAML spec mentions using lists of objects if you want order keys, and I'd like ordered keys.

behrang commented 8 years ago

Current implementation is unmaintainable. I'm creating a new spec-compliant version in parsec branch using SwiftParsec. It will work there in near future.

seivan commented 8 years ago

It would be nice if Swiftparsec could apart from each identified token e.g Array, String, Double etc could give me the row/column so if I use Yaml for e.g styling, I’d get access to the exact point something fails. But maybe this ticket should be on that repo instead.

Thanks, you (or I?) can close this.

On 2016Oct05, at 12:50, Behrang Noruzi Niya notifications@github.com wrote:

Current implementation is unmaintainable. I'm creating a new spec-compliant version in parsec branch using SwiftParsec. It will work there in near future.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/behrang/YamlSwift/issues/40#issuecomment-251642745, or mute the thread https://github.com/notifications/unsubscribe-auth/AADYgMdBK3gYSgguKqSPV-7sTe5Ddc0Cks5qw4ERgaJpZM4KOhc3.