Juha Heinanen writes:
i haven't thought about that yet. perhaps "stop" in a rule could be interpreted to mean "stop" trying shorted prefixes, or then there would need to be one more (prefix) table.
one possibility might be to include a "stop" character at the end of prefix, e.g.
001$
which would mean, if prefix 001 matches, do not try any shorter ones.
-- juha