Closed xeoncross closed 4 years ago
lexemes currently have row, column offset information. However, this requires scanning the whole source string to compute the position.
This PR adds a byte position offset.
Currently having an issue with the lexer tests not reporting the correct lex.Col values as well as correctly calculating the new .Position value. I could use some help.
lex.Col
.Position
lexemes currently have row, column offset information. However, this requires scanning the whole source string to compute the position.
This PR adds a byte position offset.