Exemple #1
0
        //-----
        public void addArgsToVerb()
        {
            ParseObject p = (ParseObject)stk.pop();
            ParseVerb   v = (ParseVerb)stk.pop();

            v.addArgs(p);
            stk.push(v);
        }
 //------
 public ParseVerb getVerb(string s)
 {
     pv = null;
     if (s.ToLower().Equals("print"))
     {
         pv = new Print(s, kid, pt);
     }
     if (s.ToLower().Equals("sortby"))
     {
         pv = new Sort(s, kid, pt);
     }
     return(pv);
 }
        //-----
        protected ParseVerb getVerb(string s)
        {
            ParseVerb v = new ParseVerb(s, dat, ptable);

            if (v.isLegal())
            {
                return(v.getVerb(s));
            }
            else
            {
                return(null);
            }
        }