//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; } }
//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); } }
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(); }