public void EmitIR(CILEmitter Emitter, bool Reference) { if (Reference) { throw new InvalidByReferenceException(); } Emitter.PushInt32(literal); }
public void EmitIR(CILEmitter Emitter, bool Reference) { if (Reference) { throw new InvalidByReferenceException(); } int booleanValue = literal ? 1 : 0; Emitter.PushInt32(booleanValue); }
protected override void LoadFirst(CILEmitter Emitter, bool Reference) { base.LoadFirst(Emitter, Reference); if (sign == OperatorType.Substraction) { if (Type.Equals(MiniPascalType.Integer)) { Emitter.PushInt32(-1); } else if (Type.Equals(MiniPascalType.Real)) { Emitter.PushSingle(-1f); } Emitter.Multiply(); return; } }
public void EmitIR(CILEmitter Emitter) { Emitter.CallStringEquals(); Emitter.PushInt32(0); Emitter.Equals(); }
public void EmitIR(CILEmitter Emitter) { Emitter.GreaterThan(); Emitter.PushInt32(0); Emitter.Equals(); }