Skip to content
Snippets Groups Projects
Commit ce0bb95a authored by Sofya Glebova's avatar Sofya Glebova
Browse files

Update Module1/Lexer.cs

parent f6e653bd
Branches
No related merge requests found
Pipeline #5338 passed with warnings with stages
in 1 hour, 6 minutes, and 4 seconds
......@@ -15,6 +15,7 @@ namespace Lexer
public LexerException(string msg)
: base(msg)
{
}
}
......@@ -23,8 +24,8 @@ namespace Lexer
{
protected int position;
protected char currentCh; //
protected int currentCharValue; //
protected char currentCh; // ��������� ��������� ������
protected int currentCharValue; // ����� �������� ���������� ���������� �������
protected System.IO.StringReader inputReader;
protected string inputString;
......@@ -57,8 +58,8 @@ namespace Lexer
}
//
// ( ).
//����������� � ��������� ������������� �������� �� ���������� � ������ ������������� ������ ����� �
//�������������� ��� � ����� � ����� ������� (��� ������� ������������ �������).
public class IntLexer : Lexer
{
......@@ -112,7 +113,7 @@ namespace Lexer
}
}
//.
//�������������.
public class IdentLexer : Lexer
{
private string parseResult;
......@@ -153,7 +154,7 @@ namespace Lexer
}
}
// , 0.
//����� �� ������, ������������ �� � ����� 0.
public class IntNoZeroLexer : IntLexer
{
public IntNoZeroLexer(string input)
......@@ -201,7 +202,7 @@ namespace Lexer
}
}
// , .
//������������ ����� � �����, ������������ � �����.
public class LetterDigitLexer : Lexer
{
protected StringBuilder builder;
......@@ -263,7 +264,7 @@ namespace Lexer
}
}
// , , ;
//������ ����, ����������� �������� , ��� ;
public class LetterListLexer : Lexer
{
protected List<char> parseResult;
......@@ -316,8 +317,8 @@ namespace Lexer
}
}
// , .
//
//������ ����, ����������� ����� ��� ����������� ���������.
//� �������� �������������� �������� ������ ���� ���������� ������ ���� � ������ � ����� ����� ������ � ����� ���������
public class DigitListLexer : Lexer
{
protected List<int> parseResult;
......@@ -363,8 +364,8 @@ namespace Lexer
}
}
// aa12c23dd1, , 2 .
//
//������� ���� aa12c23dd1, � ������� ���������� ������ ���� � ����, � ������ ������ �� ����� 2 ���������.
//� �������� �������������� �������� ���������� �������� ������ ������� � ���� ������
public class LetterDigitGroupLexer : Lexer
{
protected StringBuilder builder;
......@@ -396,7 +397,7 @@ namespace Lexer
}
}
// 123.45678
//������������ � ���������� ������ 123.45678
public class DoubleLexer : Lexer
{
private StringBuilder builder;
......@@ -471,7 +472,7 @@ namespace Lexer
}
}
// '',
//������� ���� '������', ������ ���������� ����������� ������
public class StringLexer : Lexer
{
private StringBuilder builder;
......@@ -522,7 +523,7 @@ namespace Lexer
}
}
// /**/, */
//������� ���� /*�����������*/, ������ ����������� �� ����� ����������� ������������������ �������� */
public class CommentLexer : Lexer
{
private StringBuilder builder;
......
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