Comments (5)
Hi @marzer, thanks for all of your work on this library. The API looks beautifully simple. When choosing whether to use a library like this, it is very helpful for me to see examples of the error messages from the error-handling functions. In your documentation, I saw the error-handling examples but they didn't show the full output for a sample case. That would be helpful for me to see. Thanks!
from tomlplusplus.
@jwillikers Thanks, glad you like it!
That's a good idea, I should add a few failure cases to the examples. In the mean-time you can get a good idea of how they're formatted and their level of detail by skimming through toml_parser.h
and picking out the occurences of abort_with_error()
.
from tomlplusplus.
@marzer Thanks, I appreciate it!
from tomlplusplus.
Checklist of documentation stuff for me to do when I get the chance:
- Add examples of error messages to the index page and
parse_result
's brief - Boolean literals in code blocks are bold white, but really should be blue like keywords (see
operator<<(ostream, node_type)
) - The
Contributing
link on the front page of the HTML docs refers to README.md but should refer to CONTRIBUTING.md - Add a prominent listing of the currently tested platforms and compilers to the README.md and HTML docs
- Add more detail to the code examples for
toml::parse
and friends - Add a code example for
toml::parse_error
- Use a different favicon for the HTML docs
from tomlplusplus.
@jwillikers In addition to a few minor code bugfixes I've just pushed a bunch of documentation improvements that might be relevant to your interests:
- index.html (added error message example and known supported/tested platforms)
- toml::parse_result (added error message example)
Let me know what you think and/or if there's something I've missed.
from tomlplusplus.
Related Issues (20)
- Crashes when trying to parse file with scientific notation numbers (e-numbers) HOT 1
- vs2022 cannot be used HOT 9
- Shared lib not being installed? HOT 6
- Cannot build with Intel MKL include dirs. HOT 9
- Make key::str() to return std::string instead of std::string_view? HOT 4
- Tomplusplus 3.3.0 build failed on android HOT 4
- File generated can't be parsed. HOT 1
- File that was written with toml++ can't be parsed HOT 6
- OSS-Fuzz Integration HOT 1
- vcpkg is now difficult to use. HOT 4
- How to convert toml::date_time to std::chrono::time_point? HOT 2
- Explicit / Non-lexicographical sorting when serializing? HOT 5
- Indendation customization? HOT 1
- Lambda function error using nvcc HOT 2
- Get toml/yaml/json string without using streams HOT 6
- Installation and use with Meson doesn't seem to work HOT 18
- Store single string value from node view array into string variable HOT 4
- Iterate over nested Tables (Array of Tables) HOT 4
- Undefined references linker error on nvc++ HOT 17
- What is the proper way to parse top level arrays? Seems not working HOT 4
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 tomlplusplus.