public static ILPattern Sequence(params OpCode[] opcodes) { ILPattern[] patterns = new ILPattern[opcodes.Length]; for (int i = 0; i < opcodes.Length; ++i) { patterns[i] = Instruction(opcodes[i]); } return(new SequencePattern(patterns)); }
public static ILPattern Sequence(params OpCode[] opcodes) { ILPattern[] patterns = new ILPattern[opcodes.Length]; for (int i=0; i<opcodes.Length; ++i) { patterns[i] = Instruction(opcodes[i]); } return new SequencePattern(patterns); }
public OptionalPattern(ILPattern pattern) { _pattern = pattern; }
public AlternationPattern(ILPattern a, ILPattern b) { _a = a; _b = b; }
public SequencePattern(ILPattern[] sequence) { _sequence = sequence; }