Make PositionCell take additional junk arguments

This commit is contained in:
Evil Eye
2021-10-23 11:47:42 +02:00
parent dfb6bdf77e
commit 31aa19574b
3 changed files with 11 additions and 1 deletions
+6
View File
@@ -86,6 +86,12 @@ namespace Compiler
return Parser::parseSpecial (code, loc, scanner);
}
bool StringParser::parseInt (int value, const TokenLoc& loc, Scanner& scanner)
{
reportWarning("Treating integer argument as a string", loc);
return parseName(loc.mLiteral, loc, scanner);
}
void StringParser::append (std::vector<Interpreter::Type_Code>& code)
{
std::copy (mCode.begin(), mCode.end(), std::back_inserter (code));