HCL parser in Rust
lawliet89 / ferrous-chloride Goto Github PK
View Code? Open in Web Editor NEWHCL parser, serializer and deserializer in Rust
Home Page: https://lawliet89.github.io/ferrous-chloride/ferrous_chloride/
License: MIT License
HCL parser, serializer and deserializer in Rust
Home Page: https://lawliet89.github.io/ferrous-chloride/ferrous_chloride/
License: MIT License
I tried using nom in this branch.
Alternatives:
Reading Materials:
What do you think @gyng?
Hey! Love this crate.
Is there any functionality to parse HCL files into a collection of structs?
I would assume that some_type "some_label" { ... }
would deserialize into some struct SomeType { labels: vec!["some_label"], ... }
I can see this project has not been worked on for a while, maybe you could point me in the right direction? (I realise you can already deserialize the body into a struct, but that doesn't really help me out.) I would love to contribute if you could point me in the right direction.
In the future:
For now (and the default behvaiour in the absence of a schema provided):
visit_map
)visit_map
if the Deserialize
implementation does not give any hints. What happens if multiple blocks of the same type exist?What about:
serde does not allow such complicated behaviour to be done with Serializers/Deserializers.
Cannot define custom attributes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.