Ejemplo n.º 1
0
 public Token(TokenType type, CharacterPosition startPosition, int length)
 {
     TokenType     = type;
     StartPosition = startPosition;
     Length        = length;
 }
Ejemplo n.º 2
0
 public bool Equals(CharacterPosition other)
 {
     return(other != null && Column == other.Column && Row == other.Row && Index == other.Index);
 }
Ejemplo n.º 3
0
 public Token(TokenType type, CharacterPosition startPosition)
 {
     TokenType     = type;
     StartPosition = startPosition;
     Length        = 0;
 }