Ejemplo n.º 1
0
 /// <summary>
 /// Constructs an instance
 /// </summary>
 /// <param name="instrs">instruction list</param>
 /// <param name="pattern">expansion pattern to apply</param>
 public InstructionExpander(IList <XILSInstr> instrs, ExpansionPattern pattern) :
     base(instrs)
 {
     Pattern = pattern;
     foreach (string key in pattern.HandlerKeys)
     {
         SetHandler(key, Expand);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs an instance
 /// </summary>
 /// <param name="instrs">instruction list</param>
 /// <param name="pattern">expansion pattern to apply</param>
 public InstructionExpander(IList<XILSInstr> instrs, ExpansionPattern pattern) :
     base(instrs)
 {
     Pattern = pattern;
     foreach (string key in pattern.HandlerKeys)
         SetHandler(key, Expand);
 }