* etc/bench.pl.in (&generate_grammar_list): Define and use location_type. Factor the common code in yylex.