Closed isomorphisms closed 6 years ago
You could do that. If you need to do that you can supply your own token type. The provided Token struct is merely a usable example (fit for many but not all purposes). My purpose with this particular definition is simplicity -- representing end locations as a derivative of start locations is not simple. Also, end columns may be smaller than start columns for multi-line tokens.
You set
Are EndLines ever "above" StartLines? If not, shouldn't you use a uint type for the forward column and row offset and make EndLine and EndColumn derivatives of that?