Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Sagaydak committed Apr 2, 2024
1 parent 3118e0a commit 5ab3fa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler/Models/Parser/ReqParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ private void Z(bool get, bool neutralize = false)
else
{
Errors.Add(new ParserError($"Ожидалось ключевое слово DECLARE, а встречено \"{CurrToken.Value}\"", CurrToken.StartIndex, tokens[MaxIndex].EndIndex, ErrorType.UnfinishedExpression));
E(true);

if (GetNextType() == LexemeType.DECLARE)
Z(true);
else
E(true);
}
}
}
Expand Down

0 comments on commit 5ab3fa5

Please sign in to comment.