Exemplo n.º 1
0
        protected override string RealExecute(FungeContext fungeContext)
        {
            fungeContext.MoveOnce();
            var fetched = fungeContext.GetCurrentCommandName();

            fungeContext.PushToTopStack(fetched);
            return(null);
        }
Exemplo n.º 2
0
        public string Execute(FungeContext fungeContext)
        {
            if (!fungeContext.IsSupported(this))
            {
                return($"{fungeContext.Version} not supporting  {Name} command");
            }

            var error = RealExecute(fungeContext);

            fungeContext.MoveOnce();
            return(error);
        }