ExecutionFrame
using System;
using System.Runtime.CompilerServices;
namespace CLanguage.Interpreter
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class ExecutionFrame
{
public int FP { get; set; }
public int IP { get; set; }
public BaseFunction Function { get; set; }
public ExecutionFrame(BaseFunction function)
{
if (function == null)
throw new ArgumentNullException("function");
Function = function;
}
public override string ToString()
{
return string.Format("{0}: {1}", new object[2] {
FP,
Function.Name
});
}
}
}