Implement compound operator patching.
This commit is contained in:
@@ -51,9 +51,8 @@ namespace Cryville.Common.Pdt {
|
||||
}
|
||||
public class PushVariable : PdtInstruction {
|
||||
public int Name { get; private set; }
|
||||
public PushVariable(string name) {
|
||||
Name = IdentifierManager.SharedInstance.Request(name);
|
||||
}
|
||||
public PushVariable(int name) { Name = name; }
|
||||
public PushVariable(string name) : this(IdentifierManager.SharedInstance.Request(name)) { }
|
||||
internal override void Execute(PdtEvaluatorBase etor) {
|
||||
etor.PushVariable(Name);
|
||||
}
|
||||
@@ -63,6 +62,9 @@ namespace Cryville.Common.Pdt {
|
||||
}
|
||||
public class Operate : PdtInstruction {
|
||||
public PdtOperatorSignature Signature { get; private set; }
|
||||
public Operate(int name, int paramCount) {
|
||||
Signature = new PdtOperatorSignature(name, paramCount);
|
||||
}
|
||||
public Operate(string name, int paramCount) {
|
||||
Signature = new PdtOperatorSignature(name, paramCount);
|
||||
}
|
||||
|
Reference in New Issue
Block a user