public static NeuOperation Execute(
        this NeuInterpreter interpreter,
        NeuNumberLiteralExpression numberLiteralExpr)
    {
        var numberLit = numberLiteralExpr.GetNumberLiteral();

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

        ///

        return(interpreter.Execute(numberLit));
    }
Пример #2
0
 public static NeuNumberLiteral?GetNumberLiteral(
     this NeuNumberLiteralExpression numberLiteralExpr)
 {
     return(numberLiteralExpr.GetFirstOrDefault <NeuNumberLiteral>());
 }