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

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

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

            return(0);
        }