Populate lookup table in lexer.