コード例 #1
0
ファイル: Expression.cs プロジェクト: Wotingfengyu12/11
 //	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));
 }
コード例 #2
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)
 {
     return(pVisitor.visitComplexDDExpression(
                this,
                pSymbolTable,
                ref pvar,
                AssignType));
 }
コード例 #3
0
ファイル: ReturnStatement.cs プロジェクト: Wotingfengyu12/11
 //	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;
 }
コード例 #4
0
ファイル: EmptyStatement.cs プロジェクト: Wotingfengyu12/11
        //	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);
        }
コード例 #5
0
ファイル: CProgram.cs プロジェクト: Wotingfengyu12/11
        //	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);
        }
コード例 #6
0
ファイル: BreakStatement.cs プロジェクト: Wotingfengyu12/11
 //	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);
 }