-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- merges previous parse_num and parse_uint into a single parse_numeric - removes bounds check on Num, so that parsing numbers larger than the field will modularly wrap - corrects uint parsing so that we never accidentally parse uints as nums - implements a placeholder syntax for i64 for parsing twos-complement numbers (i.e. -1i64 parses to u64::MAX). In future this syntax should parse to a new literal type - add placeholder parsing for u8, u16, u32, u128, i8, i16, i32, i128 literals so that we correctly error that these have yet to be implemented - adds unit tests to ensure correctness of the above
- Loading branch information
1 parent
d91b5e2
commit 2edc2ad
Showing
2 changed files
with
200 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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