예제 #1
0
파일: Token.cs 프로젝트: Tschrock/Komatiite
 public Token(TokenType type, CharacterPosition startPosition, int length)
 {
     TokenType     = type;
     StartPosition = startPosition;
     Length        = length;
 }
예제 #2
0
 public bool Equals(CharacterPosition other)
 {
     return(other != null && Column == other.Column && Row == other.Row && Index == other.Index);
 }
예제 #3
0
파일: Token.cs 프로젝트: Tschrock/Komatiite
 public Token(TokenType type, CharacterPosition startPosition)
 {
     TokenType     = type;
     StartPosition = startPosition;
     Length        = 0;
 }