Comments (3)
fixed by #45.
You can use -d:tomlOrderedTable
to switch TomlTable into OrderedTable
when parsing.
But because elements ordering is not mandated and even not not guaranteed by the spec, ordered table only supported by reader/parser/decoder. The writer/encoder cannot support full toml spec if using ordered table. there are cases related to dotted key where it's simply too hard or almost impossible to implement an ordered top level elements because dotted keys original form is destroyed during parsing, and when the generalized form of table is serialized, it will create different structure than the original document.
from nim-toml-serialization.
Or simply turn TomlTable
into OrderedTable[string, TomlValueRef]
from nim-toml-serialization.
Thank you for the quick implementation. 🙃
from nim-toml-serialization.
Related Issues (14)
- Refactor list HOT 2
- missing pieces
- Improvement: handling of enum types HOT 5
- Improvement: better pretty printing for nested structures HOT 3
- Compile-time Support
- hint [XCannotRaiseY] when using the library HOT 5
- Library errors with devel after stricteffects enabled HOT 1
- Cannot catch `OverflowError`
- parsing a table HOT 1
- Segfault on `orc` when echo'ing decoded object HOT 1
- Garbage reads with `readValue` for a custom type HOT 1
- `nimble install` doesn't install `faststreams` HOT 7
- Improvement: unify parseList and parseArray implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nim-toml-serialization.