-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parsing for binary and octal fractional literals.
I doubt these are super common but we add them for completeness, and because with the floats we can print in those bases
- Loading branch information
Showing
6 changed files
with
47 additions
and
7 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
0b1.1 : Rational | ||
0o1.1 : Rational | ||
1.1 : Rational | ||
0x1.1 : Rational | ||
0b1.1p3 : Rational | ||
0o1.1p3 : Rational | ||
1.1e3 : Rational | ||
0x1.1p3 : Rational | ||
0b1.1p-3 : Rational | ||
0o1.1p-3 : Rational | ||
1.1e-3 : Rational | ||
0x1.1p-3 : Rational | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Loading module Cryptol | ||
(ratio 3 2) | ||
(ratio 9 8) | ||
(ratio 11 10) | ||
(ratio 17 16) | ||
(ratio 12 1) | ||
(ratio 9 1) | ||
(ratio 1100 1) | ||
(ratio 17 2) | ||
(ratio 3 16) | ||
(ratio 9 64) | ||
(ratio 11 10000) | ||
(ratio 17 128) |