15 lines
384 B
C#
15 lines
384 B
C#
|
using Convention.RScript.Parser;
|
|||
|
using System.Diagnostics.CodeAnalysis;
|
|||
|
|
|||
|
namespace Convention.RScript.Runner
|
|||
|
{
|
|||
|
public class ExpressionRunner : IRSentenceRunner
|
|||
|
{
|
|||
|
[return: MaybeNull]
|
|||
|
public object Run(ExpressionParser parser, RScriptSentence sentence, RScriptContext context)
|
|||
|
{
|
|||
|
return parser.Evaluate(sentence.content);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|