Skip to content

Support underscores in decimal numbers - #228

Open
emayevski wants to merge 1 commit into
sebastienros:mainfrom
Allied-Bits-Ltd:ws_in_num2
Open

Support underscores in decimal numbers#228
emayevski wants to merge 1 commit into
sebastienros:mainfrom
Allied-Bits-Ltd:ws_in_num2

Conversation

@emayevski

Copy link
Copy Markdown
Contributor

Modern programming languages support underscores in numbers for better readability. The suggested change enables the parser to handle them. This is done by first accepting them as valid “digits” and then cutting them out as the number is returned. Unfortunately, this requires an extra copying step, but it is taken only when the underscores are present.

This is a corrected pull request with just one commit and no re-formatting of code (seemingly). Also, it was updated from the most recent version of the main branch.

…itespace for improved readability and are used in modern programming languages.
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.

1 participant