Should the order of literals be hex/oct/dec when parsing an integer? #279
Answered
by
d-frey
0x8000-0000
asked this question in
Q&A
-
Regarding: PEGTL/src/example/pegtl/proto3.cpp Line 46 in 45b4d68 I tried using this fragment in one of my grammars, and hex numbers failed to parse, the leading 0 was recognized as a decimal then the parsing failed. Switching the order:
seems to have solved the problem |
Beta Was this translation helpful? Give feedback.
Answered by
d-frey
Oct 20, 2021
Replies: 1 comment 1 reply
-
Yes. I fixed it, but after looking at the proto3 grammar I think there are more things wrong with our grammar. sigh I'll take a look when I have some more time. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
0x8000-0000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. I fixed it, but after looking at the proto3 grammar I think there are more things wrong with our grammar. sigh I'll take a look when I have some more time.