summaryrefslogtreecommitdiff
path: root/compiler/Lexer/Token.cs
blob: 366036e83528a79623a2396da5c039f68c60795d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace AtLangCompiler;

public enum TokenType
{
    AT, IDENT, EQUAL, GETENV, LPAREN, RPAREN, LBRACE, RBRACE,
    STRING, PLUS, IF, ELSE, PRINT, EQEQ, EOF, GETWEB, POSTWEB, STARTSERVER, EXIT
}

public class Token
{
    public TokenType Type { get; }
    public string Text { get; }
    public Token(TokenType type, string text) { Type = type; Text = text; }
}