Skip to content
Snippets Groups Projects
Commit 122e8775 authored by DmitriiFomenko's avatar DmitriiFomenko
Browse files

fix

parent c056167f
Branches
No related merge requests found
Pipeline #5364 passed with warnings with stages
in 7 minutes and 5 seconds
......@@ -214,16 +214,16 @@ namespace Lexer
}
public override bool Parse()
{
bool isChar = false;
bool isDigit = false;
NextCh();
while (currentCharValue != -1)
{
if (char.IsDigit(currentCh) ^ isChar || currentCh == ' ')
if (char.IsDigit(currentCh) ^ isDigit || currentCh == ' ')
Error();
isChar = !isChar;
isDigit = !isDigit;
NextCh();
}
......@@ -533,7 +533,7 @@ namespace Lexer
bool flag_after_final = false;
NextCh();
if (currentCh == ' ')//
if (currentCh == ' ')
Error();
else if (currentCh == '/')
{
......@@ -638,7 +638,7 @@ namespace Lexer
builder.Clear();
dot_flag = true;
}
if (currentCh != '.')
else
builder.Append(currentCh.ToString());
NextCh();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment