1. In a computing environment comprising at least one computer processor and computer-readable storage media, a method for determining an E-matching code tree from one or more patterns, the method comprising: accessing one or more patterns; compiling each of the one or more patterns into a code sequence, each code sequence comprising one or more instructions; labeling the one or more instructions in a code sequence, the code sequence corresponding to the one or more patterns; combining the labeled instructions into a code tree, the tree corresponding to the common structure of the one or more patterns; recording the code tree in a computer-readable storage medium.