Skip to content
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

Protoc allows "-nan" and is lenient for "inf" and "nan" inside message literals #37

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

jhump
Copy link
Member

@jhump jhump commented Dec 8, 2023

This requires adding nan to the list of keywords, so we can model the special float value -nan in the grammar.

I also made some minor simplifications in here by combining UintLiteral and IntLiteral into a single IntLiteral production (which can be optionally signed).

This also contains a correction to the set of identifiers that can be used for boolean values in the text format. The previous text indicated that T and F could be used, but that's incorrect: it's lower-case t and f that can be used.

TODO: updating the example grammars to reflect these latest fixes

Copy link

vercel bot commented Dec 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
protobuf-com ✅ Ready (Inspect) Visit Preview Dec 8, 2023 3:59am

@jhump jhump requested a review from Alfus December 8, 2023 03:59
@jhump
Copy link
Member Author

jhump commented Dec 8, 2023

cc @jacobbuf

@jhump jhump merged commit 6c11270 into main Dec 8, 2023
5 checks passed
@jhump jhump deleted the jh/more-fixes branch December 8, 2023 20:47
jhump added a commit that referenced this pull request Jan 11, 2024
jhump added a commit that referenced this pull request Jan 11, 2024
Reconciles the examples with the changes from #36 and #37.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants