Use tuples instead of dictionaries.
The dictionary did not preserve order, while tuples do.
It caused some symbols to not be lexed correctly.