added function to get src location in lexer