public static NeuOperation Execute( this NeuInterpreter interpreter, NeuExpressionStatement expressionStatement) { var expression = expressionStatement.GetExpression(); if (expression == null) { throw new Exception(); } return(interpreter.Execute(expression)); }
public static NeuExpression?GetExpression( this NeuExpressionStatement expressionStatement) { return(expressionStatement.GetFirstOrDefault <NeuExpression>()); }