Skip to content

Commit a9bff6b

Browse files
authored
added dog expression ("@")
1 parent 19a5215 commit a9bff6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SourceCode/Parser/Lexer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace OwnLang
88
{
99
class Lexer
1010
{
11-
private static string OPERATOR_CHARS = "+-*/()[]{}=<>!&|;.:";
11+
private static string OPERATOR_CHARS = "+-*/()[]{}=<>!&|;.:@";
1212
private string input;
1313
private List<Token> tokens;
1414
private static Dictionary<string, TokenType> OPERATORS;
@@ -41,6 +41,7 @@ static Lexer()
4141
OPERATORS.Add(";", TokenType.COMMA);
4242
OPERATORS.Add(".", TokenType.DOT);
4343
OPERATORS.Add(":", TokenType.DDOT);
44+
OPERATORS.Add("@", TokenType.DOG);
4445

4546
OPERATORS.Add("!", TokenType.EXCL);
4647
OPERATORS.Add("&", TokenType.AMP);

0 commit comments

Comments
 (0)