Changeset 2215 in Sophya for trunk/SophyaPI/PIext/piacmd.h


Ignore:
Timestamp:
Oct 20, 2002, 4:12:08 PM (23 years ago)
Author:
ansari
Message:

Amelioration de l'interpreteur de base de piapp (PIAcmd), en particulier :

  • Gestion de stack pour les arguments des .pic
  • Gestion de stack pour les if then else endif
  • Gestion de stack pour les blocs for / foreach
  • Amelioration decodage des variables $varname et introduction de la possibilite d'acces aux mots d'une variable sous forme de tableau $varname[i] : le mot numero i de la chaine $varname

Reza - 20/10/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.h

    r2214 r2215  
    102102
    103103protected:
    104   virtual int           CheckHelpGrp(string& grp);
     104  virtual int   CheckHelpGrp(string& grp);
    105105  int           ExecuteCommandLine(string & keyw, vector<string> & args,
    106106                                   string & toks);
     
    110110                             string & line, bool & res);
    111111  bool          GetVar(string & vn, string & vv);
     112  void          PushStack(vector<string> & args);
     113  void          PopStack(bool psta=true);
    112114
    113115  NamedObjMgr* mObjMgr;
     
    151153  stack< vector<string> > ArgsStack;
    152154
    153   PIACmdBloc * curblk;  // Bloc de commande courant (foreach, ...)
    154   int felevel;          // foreah level
    155   list<char> testresult;    // Resultat des test if
     155  stack< PIACmdBloc * > CmdBlks;  // Bloc de commande courant (foreach, ...)
     156  int felevel;                    // foreach-for level
     157  stack< list<char> > TestsStack; // Stack des resultats de test
    156158  list<char>::iterator tresit;       // Test courant
     159  bool curtestresult;             // Resultat courant des tests
     160
    157161  bool mulinefg;            // Bloc multi-lignes (ligne suite)
    158162  string mulinecmd;         // Commande multi-lignes
Note: See TracChangeset for help on using the changeset viewer.