added function to get source location within the lexer