mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
Add basic complex number support.
This commit is contained in:
@@ -218,7 +218,7 @@ static void push_result_token(parser_t *parser, const py_lexer_t *lex) {
|
||||
int_val = base * int_val + str[i] - 'a' + 10;
|
||||
} else if (base == 16 && 'F' <= str[i] && str[i] <= 'F') {
|
||||
int_val = base * int_val + str[i] - 'A' + 10;
|
||||
} else if (str[i] == '.' || str[i] == 'e' || str[i] == 'E') {
|
||||
} else if (str[i] == '.' || str[i] == 'e' || str[i] == 'E' || str[i] == 'j' || str[i] == 'J') {
|
||||
dec = true;
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user