remove whitespace

This commit is contained in:
xensik
2022-01-26 12:12:34 +01:00
parent 0824e52aa0
commit 7d643a9ae4
18 changed files with 81 additions and 81 deletions

View File

@ -1833,7 +1833,7 @@ void decompiler::decompile_loops(const ast::stmt_list::ptr& stmt)
{
decompile_loop(stmt, i, j);
i = 0;
}
}
}
}
}

View File

@ -325,7 +325,7 @@ auto lexer::lex() -> xsk::gsc::h1::parser::symbol_type
{
color = false;
break;
}
}
}
if (color) return h1::parser::make_COLOR(std::string(++data, --len), loc_);
@ -335,17 +335,17 @@ auto lexer::lex() -> xsk::gsc::h1::parser::symbol_type
if (key == keyword::KW_INVALID)
throw h1::parser::syntax_error(loc_, utils::string::va("unknown preprocessor directive ('%s')", "#"));
if (keyword_is_token(key))
return keyword_token(key);
// call preprocessor(key);
// call preprocessor(key);
}
continue;
case '*':
if (reader_.state == reader::end || (curr != '/' && curr != '='))
return h1::parser::make_MUL(loc_);
reader_.advance();
if (curr == '/')
@ -399,24 +399,24 @@ auto lexer::lex() -> xsk::gsc::h1::parser::symbol_type
if (curr != '=')
return h1::parser::make_MOD(loc_);
reader_.advance();
return h1::parser::make_ASSIGN_MOD(loc_);
return h1::parser::make_ASSIGN_MOD(loc_);
case '|':
if (curr != '|' && curr != '=')
return h1::parser::make_BITWISE_OR(loc_);
reader_.advance();
return (last == '|') ? h1::parser::make_OR(loc_) : h1::parser::make_ASSIGN_BW_OR(loc_);
return (last == '|') ? h1::parser::make_OR(loc_) : h1::parser::make_ASSIGN_BW_OR(loc_);
case '&':
if (curr != '&' && curr != '=' && curr != '"' && curr != '\'')
return h1::parser::make_BITWISE_AND(loc_);
reader_.advance();
if (last == '"' || last == '\'')
return read_string(last, true);
return (last == '&') ? h1::parser::make_AND(loc_) : h1::parser::make_ASSIGN_BW_AND(loc_);
return (last == '&') ? h1::parser::make_AND(loc_) : h1::parser::make_ASSIGN_BW_AND(loc_);
case '^':
if (curr != '=')
return h1::parser::make_BITWISE_EXOR(loc_);
reader_.advance();
return h1::parser::make_ASSIGN_BW_EXOR(loc_);
return h1::parser::make_ASSIGN_BW_EXOR(loc_);
case '!':
if (curr != '=')
return h1::parser::make_NOT(loc_);