Exemple #1
0
        public static CallScope Create(string parm)
        {
            CallScope callScope = new CallScope(new EmptyScope());

            callScope.PushBack(NValue.StringValue(parm));
            return(callScope);
        }
Exemple #2
0
        // operator()
        public Value Call(CallScope args)
        {
            if (!args.IsEmpty)
            {
                args.PushFront(NValue.StringValue("?expr"));
                return(Handler(args));
            }

            if (WantsArg)
            {
                return(NValue.StringValue(Value));
            }
            else
            {
                return(NValue.Get(Handled));
            }
        }