-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Lexer number parsing refactor #11211
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
Merged
straight-shoota
merged 30 commits into
crystal-lang:master
from
BlobCodes:refactor/lexer-number-parsing
Dec 10, 2021
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
de76dd9
Lexer number parsing refactor
BlobCodes e4688c6
Fix numbers ending with e notation (ex. "12e")
BlobCodes 83a00f8
Merge branch 'crystal-lang:master' into refactor/lexer-number-parsing
BlobCodes 241a35d
Handle all "numeric literal without digits" errors in one place
BlobCodes e1db7da
Improve error message when integer has leading '0'
BlobCodes 006e06b
Do not increment underscore counter on e-notation
BlobCodes a75e352
Fix specs
BlobCodes 3b92b6d
Unify number suffix scanning
BlobCodes 6b78d13
Change consecutive underscore error message
BlobCodes 724585c
Refactor to apply rules in #11447 and fix bugs
BlobCodes 14368ce
Merge branch 'master' into refactor/lexer-number-parsing
BlobCodes 13af8b7
Make gen_check_int_fits_in_size less magic
BlobCodes 57590fe
Allow underscore before e-notation in number
BlobCodes 5d501d4
Improve code readability
BlobCodes 66ce336
Revert "Improve code readability"
BlobCodes cfa567a
Remove duplicated statement
BlobCodes 8fc9dd4
Improve code quality
BlobCodes e8799d5
Add more specs
BlobCodes b1d300a
Fix compiler
BlobCodes 7ec5b1e
Add "unreachable" comment
BlobCodes ea610b4
Disallow number literals ending with e-notation
BlobCodes dabf5f3
Add spec for uppercase E-notation
BlobCodes 470b367
Adapt "invalid suffix" error to compiler style
BlobCodes 4ba109c
Add more invalid suffix specs
BlobCodes 4779582
Use "unexpected '_' in number" error if underscore not actually trailing
BlobCodes 794d887
Merge branch 'refactor/lexer-number-parsing' of https://github.com/Bl…
BlobCodes 454c73b
Remove error_number_string, rename before_prefix_pos
BlobCodes 5be0eaa
Fix hex literals with 17-19 digits possibly throwing a compiler error
BlobCodes f092dd6
Add specs for previous change
BlobCodes 7ba5ddb
Remove suffix from previous spec
BlobCodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.