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