Ejemplo n.º 1
0
    public static NeuOperation Execute(
        this NeuInterpreter interpreter,
        NeuExpressionStatement expressionStatement)
    {
        var expression = expressionStatement.GetExpression();

        if (expression == null)
        {
            throw new Exception();
        }

        return(interpreter.Execute(expression));
    }
Ejemplo n.º 2
0
 public static NeuExpression?GetExpression(
     this NeuExpressionStatement expressionStatement)
 {
     return(expressionStatement.GetFirstOrDefault <NeuExpression>());
 }