diff --git a/include/pocketpy/lexer.h b/include/pocketpy/lexer.h index b00bec99..35a3ce20 100644 --- a/include/pocketpy/lexer.h +++ b/include/pocketpy/lexer.h @@ -21,7 +21,7 @@ constexpr const char* kTokens[] = { "<<", "<<=", ">>", ">>=", /*****************************************/ ".", ",", ":", ";", "#", "(", ")", "[", "]", "{", "}", - "**", "=", ">", "<", "..", "...", "->", "?", "@", "==", "!=", ">=", "<=", + "**", "=", ">", "<", "..", "...", "->", "@", "==", "!=", ">=", "<=", "++", "--", "~", /** KW_BEGIN **/ "class", "import", "as", "def", "lambda", "pass", "del", "from", "with", "yield", diff --git a/src/lexer.cpp b/src/lexer.cpp index 4eb6a495..978a5c20 100644 --- a/src/lexer.cpp +++ b/src/lexer.cpp @@ -344,7 +344,6 @@ static bool is_unicode_Lo_char(uint32_t c) { case '&': add_token_2('=', TK("&"), TK("&=")); return true; case '|': add_token_2('=', TK("|"), TK("|=")); return true; case '^': add_token_2('=', TK("^"), TK("^=")); return true; - case '?': add_token(TK("?")); return true; case '.': { if(matchchar('.')) { if(matchchar('.')) {