AST building #2

Merged
TopchetoEU merged 74 commits from TopchetoEU/ast-building into master 2022-10-28 11:58:03 +00:00
Showing only changes of commit 572e9cb484 - Show all commits

View File

@ -136,7 +136,7 @@ static res_t lexlet_string(char c, std::vector<char> &tok) {
else return lexer_none();
};
static res_t lexlet_char(char c, std::vector<char> &tok) {
if (c == '\'' && tok.back() != '\\') return lexer_end(token_t::CHAR_LITERAL, false).add();
if ((c == '\'') && (tok.back() != '\\')) return lexer_end(token_t::CHAR_LITERAL, false).add();
else return lexer_none();
};