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