Support for length unary operator
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-09-12 18:19:06 +02:00
parent bd9eac9056
commit 73142afa8a
18 changed files with 95 additions and 10 deletions

View File

@@ -103,6 +103,8 @@ namespace Porygon::Parser {
}
this->ScriptData->Diagnostics->LogError(Diagnostics::DiagnosticCode::UnexpectedCharacter, this->_position - 1, 1);
return new SimpleToken(TokenKind::BadToken, this->_position - 1, 1);
case '#':
return new SimpleToken(TokenKind::HashToken, this->_position - 1, 1);
case '0':
case '1':
case '2':