D
Daniel Haude
On 26 Oct 2004 15:23:39 GMT,
I like to farm out such code to automatically generated files (by flex or
some hand-written utility).
--Daniel
in Msg. said:Consider the code dealing with opcode mnemonics in an assembler. A jumbo
switch dealing with each mnemonic as a case (by the time you have checked
that it is a valid mnemonic you can also assign it a unique integer value:
its position in the valid mnemonic array) is the most natural approach.
I like to farm out such code to automatically generated files (by flex or
some hand-written utility).
--Daniel