Token.cs 306 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Larkdown.Parser.Lexer
  5. {
  6. public class Token
  7. {
  8. public TokenType Type { get; }
  9. public string Content { get; }
  10. public Token(TokenType type, string content = null)
  11. {
  12. Type = type;
  13. Content = content;
  14. }
  15. }
  16. }