Hi, I'm investigating a possible design. Is their a way or established mechanism, or pattern, to select a set of arbitary methods to excute depending on some input. For example, if you were trying to implement a lexer, and you didn't want to go so far as implementing using lex, or even going a far as implementing an LL(1) or LR(k) parser.
So, you have some input. Say, A B C, then a mechanism would select MethodA, MethodB, MethodC, then the second input was A then D, so the code mechanism would select MethodA, then MethodD for execution.
What tools, patters, engines, parsers code would enable that kind of scenario.
It could be the case that I can see the forest for trees, or whatever that phrase is, but their must be a standard way of doing it. Bob.