//internal VarRef ParseVarRef(string varRef, Location loc)
 //{
 //    return null;
 //}
 internal LeftValueExpr ParseLeftValueExpr(string expr, Location loc)
 {
     ExpressionParserKernel exprKernel = new ExpressionParserKernel(kernel, expr, loc);
     Expression result =  exprKernel.Parse();
     if (!(result is LeftValueExpr))
     {
         kernel.IssueError(ErrorType.NotLeftValue, loc);
         return null;
     }
     else
     {
         return result as LeftValueExpr;
     }
 }
Esempio n. 2
0
        //internal VarRef ParseVarRef(string varRef, Location loc)
        //{
        //    return null;
        //}

        internal LeftValueExpr ParseLeftValueExpr(string expr, Location loc)
        {
            ExpressionParserKernel exprKernel = new ExpressionParserKernel(kernel, expr, loc);
            Expression             result     = exprKernel.Parse();

            if (!(result is LeftValueExpr))
            {
                kernel.IssueError(ErrorType.NotLeftValue, loc);
                return(null);
            }
            else
            {
                return(result as LeftValueExpr);
            }
        }
Esempio n. 3
0
        internal Expression ParseExpr(string expr, Location loc)
        {
            ExpressionParserKernel exprKernel = new ExpressionParserKernel(kernel, expr, loc);

            return(exprKernel.Parse());
        }
 internal Expression ParseExpr(string expr, Location loc)
 {
     ExpressionParserKernel exprKernel = new ExpressionParserKernel(kernel, expr, loc);
     return exprKernel.Parse();
 }