Skip to content

Fix issue when parsing hexadecimal and binary literals#242

Merged
metoule merged 1 commit intodynamicexpresso:masterfrom
metoule:fix_241
Jun 23, 2022
Merged

Fix issue when parsing hexadecimal and binary literals#242
metoule merged 1 commit intodynamicexpresso:masterfrom
metoule:fix_241

Conversation

@metoule
Copy link
Copy Markdown
Contributor

@metoule metoule commented Jun 22, 2022

The lexer took one more character than needed when parsing an hexadecimal or a binary literal:

4+0x124+5

Instead of 0x124, the lexer considered 0x124+ to be the literal. Now, we backtrack one character to avoid this issue.

Fix #241

@metoule metoule requested a review from davideicardi as a code owner June 22, 2022 13:46
Copy link
Copy Markdown
Member

@davideicardi davideicardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@metoule metoule merged commit 42132ad into dynamicexpresso:master Jun 23, 2022
@metoule metoule deleted the fix_241 branch June 23, 2022 13:40
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.

Error when parsing hex number inside parenthesis

2 participants