コード例 #1
0
ファイル: ssEdParse.cs プロジェクト: collumww/ssconV3
        public void Do(string s)
        {
            try {
                ResetAffected();
                InitAllSeqs();
                NewTrans();
                ParseAndExec(s);
                Commit();
                UpdateAffected();

                /*/win remove for non-windowed version
                 * if (txt != null && txt.Frm != null) txt.Frm.CmdShowCursor();
                 * if (!log.Ended()) MsgLn("");
                 * // remove for non-windowed version */
            }
            catch (Exception e) {
                grouping   = 0;
                cts        = null;
                swallowing = false;
                root.nxt   = null;
                root.sub   = null;
                tail       = root;
                InitAllSeqs();
                SyncFormToTextAll();
                Err(e.Message);
                if (!(e is ssException))
                {
                    throw e;
                }
            }
        }
コード例 #2
0
 CTree PopCmd()
 {
     if (cts != null)
     {
         CTree t = cts.t;
         cts = cts.nxt;
         grouping--;
         return(t);
     }
     else
     {
         throw new ssException("unmatched '}'");
     }
 }
コード例 #3
0
 public CTreeList(CTree tt, CTreeList n, bool c)
 {
     t = tt; nxt = n; compound = c;
 }
コード例 #4
0
 void PushCmd(CTree t, bool c)
 {
     cts = new CTreeList(t, cts, c);
     grouping++;
 }