示例#1
0
 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));
 }
示例#2
0
		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);
		}
示例#3
0
 public OptionalPattern(ILPattern pattern)
 {
     _pattern = pattern;
 }
示例#4
0
 public AlternationPattern(ILPattern a, ILPattern b)
 {
     _a = a;
     _b = b;
 }
示例#5
0
			public AlternationPattern(ILPattern a, ILPattern b)
			{
				_a = a;
				_b = b;
			}
示例#6
0
			public OptionalPattern(ILPattern pattern)
			{
				_pattern = pattern;
			}
示例#7
0
			public SequencePattern(ILPattern[] sequence)
			{
				_sequence = sequence;
			}