Example #1
0
        public object Visit_AssignStatement(AssignStatement assignStmt)
        {
            assignStmt.Variable.Accept(this);
            assignStmt.Expression.Accept(this);

            return(0);
        }
Example #2
0
        public object Visit_AssignStatement(AssignStatement assignStmt)
        {
            string varName = (string)assignStmt.Variable.Name;

            Current[varName] = assignStmt.Expression.Accept(this);

            return(0);
        }