using HeuristicLab.Algorithms.PushGP.Stack; namespace HeuristicLab.Algorithms.PushGP.Expressions { public class CodeQuoteExpression : Expression { public CodeQuoteExpression() : base(OpCode.CodeQuote) { } public override void Eval(IInterpreterService interpreterService) { // not enough arguments on stack if (interpreterService.ExecStack.Count == 0) return; var expression = interpreterService.ExecStack.Pop(); interpreterService.CodeStack.Push(expression); } } }