-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on parinsing trivial YAML #413
Comments
This workaround
in basic_node_type create_scalar_node(node_type type, str_view token) permit to parse the file but it shuild be better to change node_type decide_value_type(lexical_token_t lex_type, tag_t tag_type, str_view token) const noexcept in order to detect the correct type. |
@ebertolazzi |
@ebertolazzi |
@ebertolazzi |
Now work well! Thanks a lot for your excellent work. I want to signal an annoying warning with the NEW c++ compiler: node.hpp:12811:32: warning: identifier '_yaml' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator] it seems that the standard now prefer to remove white space in definition of literal operator. regards, |
@ebertolazzi
I didn't know that, thanks for the information. |
@ebertolazzi
I know it's so annoying to see a number of warnings you cannot resolve without somehow ignoring them, and so I want to fix them. |
to stop message it is enough to use a pragma #ifdef clang |
The compiler is clang -v ─╯ on OSX sequoia 15.0.1 |
@ebertolazzi |
@ebertolazzi |
I'll close this issue. The fixes are included in the release v0.3.14. If any related issue is found, feel free to reopen it. |
Description
The parse failed to parse a single item
Reproduction steps
If you parse the following YAML
b: 1e-1
I obtain the error:
Failed to convert a scalar to an integer. (at line 0, column 3)
If you use
b: 0.1e-2
all is ok.
It seems that the parser try to force an integer for number in engineering form that start with a integer.
Expected vs. actual results
nope
Minimal code example
No response
Error messages
No response
Compiler and operating system
clang MAC OS
Library version
0.3.13
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: