Git Product home page Git Product logo

Comments (3)

flowerysong avatar flowerysong commented on August 17, 2024 1

I'm not sure why you expect this to work?

The documentation that you linked to says "UCL is fully compatible with JSON format and is able to parse json files." Nowhere does it claim that it is capable of parsing generic YAML files.

Because both UCL and YAML are supersets of JSON some YAML documents are parseable by libucl (provided they don't use YAML-specific features like the --- document separator), but there are a huge number of YAML-specific features used in idiomatic YAML that are not compatible with UCL.

from libucl.

oxr463 avatar oxr463 commented on August 17, 2024

I'm not sure why you expect this to work?

If it supports YAML output, I would assume it would support YAML input.

Perhaps it would be good to amend the documentation to reflect this.

from libucl.

flowerysong avatar flowerysong commented on August 17, 2024

If it supports YAML output, I would assume it would support YAML input.

That's a very questionable assumption, since that's not stated as a supported input format. It's also very clear just from looking at the unlinted output that it's not designed as a general-purpose YAML library and is just emitting YAML-flavoured UCL rather than idiomatic YAML.

Perhaps it would be good to amend the documentation to reflect this.

The README states multiple times that libucl is designed to parse UCL (and, by extension, JSON), the libucl API documentation states that it's a UCL parser, and the ucl_tool documentation clearly states that --format only applies to the output format.

from libucl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.