public void EmitIR(CILEmitter Emitter, bool Reference) { if (Reference) { throw new InvalidByReferenceException(); } Emitter.PushSingle(literal); }
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; } }