1. A method for matching rules to an input stream by executing a single DFA having a plurality of states, wherein said rules require greedy matching and comprehensive matching, comprising: executing the DFA in a single scan descent; reporting comprehensive match tokens; and reporting greedy match tokens.