Hi,
I am just trying to do some program on arithmetic expression parsing.
So i want to store my operator precedence table in the program somehow.
I could use a multidimensional array, but that would be inefficient i guess.
Another idea i have is to use a HashTable, where the keys will be integers spcifying the precedence order, and the value can be an array or better an arraylist which can have the elements with the same precedence.
But still this will involve a lot of looping around as the precedence value, is the key and not the value.
Does anyone have a better proposition on how to do this?
Thanks,
Aravind