// {s -- } private int EvaluateAction() { _interpreter.ObjectStackExpect(1); _interpreter.Evaluate(new StringSourceReader(_interpreter.OPop().ToString())); return(1); }
/// <summary> /// Interprets a string as a FORTH program. /// </summary> /// <param name="interpreter">An IInterpreter instance.</param> /// <param name="src">A FORTH program source.</param> public static void Evaluate(this IInterpreter interpreter, string src) { interpreter.Evaluate(new StringSourceReader(src)); }