Exemple #1
0
        public void Visit(FuncCallExprParam funcCallExprParam)
        {
            funcCallExprParam.FuncCall.Accept(this);

            if (funcCallExprParam.Unary)
            {
                // Add negation
                Environment.PushToTheStack(Environment.PopFromTheStack() * (-1));
            }
        }
 public void Visit(FuncCallExprParam funcCallExprParam)
 {
     Console.Write(funcCallExprParam.Unary ? "-" : "");
     funcCallExprParam.FuncCall.Accept(this);
 }