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; } }