forked from elm/compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix elm#1533, parsing upper case hex digits
The check for upper case letters A-F had a comparison going the wrong way. Rewrote to make it more clear.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var _elm_lang$core$Main$hex5 = 1193865; | ||
var _elm_lang$core$Main$hex4 = 48879; | ||
var _elm_lang$core$Main$hex3 = 48879; | ||
var _elm_lang$core$Main$hex2 = 64; | ||
var _elm_lang$core$Main$hex1 = 4294967295; | ||
var _elm_lang$core$Main$float4 = 2300.0; | ||
var _elm_lang$core$Main$float3 = 6.022e26; | ||
var _elm_lang$core$Main$float2 = 0.67; | ||
var _elm_lang$core$Main$float1 = 3.14; | ||
var _elm_lang$core$Main$exp4 = 1000.0; | ||
var _elm_lang$core$Main$exp3 = 2.0e-9; | ||
var _elm_lang$core$Main$exp2 = 3.0e7; | ||
var _elm_lang$core$Main$exp1 = 4.0e9; | ||
var _elm_lang$core$Main$int = 12345; |
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,18 @@ | ||
|
||
int = 12345 | ||
|
||
exp1 = 4e9 | ||
exp2 = 3E7 | ||
exp3 = 2e-9 | ||
exp4 = 1E+3 | ||
|
||
float1 = 3.14 | ||
float2 = 0.67 | ||
float3 = 6.022e26 | ||
float4 = 0.23E4 | ||
|
||
hex1 = 0xFFFFFFFF | ||
hex2 = 0x0040 | ||
hex3 = 0xbeef | ||
hex4 = 0xBEEF | ||
hex5 = 0x0123789 |