Exemple #1
0
 //	Allo\w Visitors to do different operations on the node.
 public override int Execute(
     CGrammarNodeVisitor pVisitor,
     CSymbolTable pSymbolTable,
     ref INTER_VARIANT pvar,
     RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN)//Anil August 26 2005 to Fix a[exp1] += exp2
 {
     return(pVisitor.visitExpression(this, pSymbolTable, ref pvar, AssignType));
 }
 //	Allow Visitors to do different operations on the node.
 public override int Execute(CGrammarNodeVisitor pVisitor, CSymbolTable pSymbolTable,
                             ref INTER_VARIANT pvar, RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN)
 {
     return(pVisitor.visitComplexDDExpression(
                this,
                pSymbolTable,
                ref pvar,
                AssignType));
 }
Exemple #3
0
 //	Allow Visitors to do different operations on the node.
 public override int Execute(CGrammarNodeVisitor pVisitor, CSymbolTable pSymbolTable,
                             ref INTER_VARIANT pvar, RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN)//Anil August 26 2005 to Fix a[exp1] += exp2
 {
     //Anil Octobet 5 2005 for handling Method Calling Method
     return(pVisitor.visitReturnStatement(
                this,
                pSymbolTable,
                ref pvar,
                AssignType));
     //	return VISIT_RETURN;
 }
Exemple #4
0
        //	Allow Visitors to do different operations on the node.
        public override int Execute(CGrammarNodeVisitor pVisitor, CSymbolTable pSymbolTable,
                                    ref INTER_VARIANT pvar, RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN) //Anil August 26 2005 to Fix a[exp1] += exp2
        {
            if ((object)pvar != null)                                                                                    // stevev 19nov09 - make 'for(;;)' statement work
            {
                byte[] b = { 1 };
                pvar.SetValue(b, 0, VARIANT_TYPE.RUL_UNSIGNED_CHAR);      // stevev 19nov09 - make 'for(;;)' statement work
            }

            return(VISIT_NORMAL);
        }
Exemple #5
0
        //	Allow Visitors to do different operations on the node.
        public override int Execute(CGrammarNodeVisitor pVisitor, CSymbolTable pSymbolTable,
                                    ref INTER_VARIANT pvar, RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN) //Anil August 26 2005 to Fix a[exp1] += exp2
        {
            int nReturn = pVisitor.visitProgram(this, pSymbolTable, ref pvar, AssignType);                               //Anil August 26 2005 to Fix a[exp1] += exp2

            /*
             * if (nReturn == VISIT_ERROR)// emerson april2013
             * {
             *  throw (C_UM_ERROR_INTERNALERR);
             * }
             */
            return(nReturn);
        }
Exemple #6
0
 //	Allow Visitors to do different operations on the node.
 public override int Execute(CGrammarNodeVisitor pVisitor, CSymbolTable pSymbolTable,
                             ref INTER_VARIANT pvar, RUL_TOKEN_SUBTYPE AssignType = RUL_TOKEN_SUBTYPE.RUL_ASSIGN)//Anil August 26 2005 to Fix a[exp1] += exp2
 {
     return(VISIT_BREAK);
 }