[BACK]Return to yylex_polymake.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / trans

Diff for /OpenXM/src/kan96xx/trans/yylex_polymake.c between version 1.3 and 1.6

version 1.3, 2004/07/15 07:50:40 version 1.6, 2018/05/03 13:20:35
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/trans/yylex_polymake.c,v 1.2 2004/04/08 01:49:04 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/trans/yylex_polymake.c,v 1.5 2009/09/04 02:25:30 takayama Exp $ */
 /* parser for polymake output */  /* parser for polymake output */
 /* This program requires  /* This program requires
   
Line 74  int PMlex_aux() {
Line 74  int PMlex_aux() {
   if (S[Pt] == '[') { Pt++; return PM_LBracket; }    if (S[Pt] == '[') { Pt++; return PM_LBracket; }
   if (S[Pt] == ']') { Pt++; return PM_RBracket; }    if (S[Pt] == ']') { Pt++; return PM_RBracket; }
   if (S[Pt] == ':') { Pt++; return PM_colon; }    if (S[Pt] == ':') { Pt++; return PM_colon; }
     if (S[Pt] == '=') { Pt++; return PM_eq; }
   if (((S[Pt] >= '0') && (S[Pt] <= '9')) || (S[Pt] == '-')) {    if (((S[Pt] >= '0') && (S[Pt] <= '9')) || (S[Pt] == '-')) {
         putstr(-1); putstr(S[Pt++]);          putstr(-1); putstr(S[Pt++]);
         while (((S[Pt]>='0') && (S[Pt]<='9')) || (S[Pt] == '/')) putstr(S[Pt++]);          while (((S[Pt]>='0') && (S[Pt]<='9')) || (S[Pt] == '/')) putstr(S[Pt++]);
Line 82  int PMlex_aux() {
Line 83  int PMlex_aux() {
   }    }
   if (((S[Pt] >= 'A') && (S[Pt] <= 'Z')) ||    if (((S[Pt] >= 'A') && (S[Pt] <= 'Z')) ||
       ((S[Pt] >= 'a') && (S[Pt] <= 'z')) ||        ((S[Pt] >= 'a') && (S[Pt] <= 'z')) ||
       (S[Pt] == '_')) {        (S[Pt] == '_') || S[Pt] == '!') {
         putstr(-1); putstr(S[Pt++]);      if (S[Pt] != '!') {putstr(-1); putstr(S[Pt++]);}
         while (((S[Pt] >= 'A') && (S[Pt] <= 'Z')) ||      else {
       ((S[Pt] >= 'a') && (S[Pt] <= 'z')) ||            putstr(-1); Pt++;
       (S[Pt] == '_')) putstr(S[Pt++]);            putstr('N'); putstr('O'); putstr('T'); putstr('_'); putstr('_');
         PMlval = pmNewStrObject(putstr(0));          }
         return PM_keyword;      while (((S[Pt] >= 'A') && (S[Pt] <= 'Z')) ||
              ((S[Pt] >= 'a') && (S[Pt] <= 'z')) ||
              (S[Pt] == '_')) putstr(S[Pt++]);
       PMlval = pmNewStrObject(putstr(0));
       return PM_keyword;
   }    }
   Pt++;  return PM_unknown;    Pt++;  return PM_unknown;
 }  }
Line 159  static char *putstr2s(char *s) {
Line 164  static char *putstr2s(char *s) {
   return ss;    return ss;
 }  }
   
 pmPreprocess() {  int pmPreprocess() {
   int newp,oldp;    int newp,oldp;
   int state;    int state;
   int i,j;    int i,j;
Line 338  pmObjectp pmAddChild(pmObjectp c,pmObjectp a) {
Line 343  pmObjectp pmAddChild(pmObjectp c,pmObjectp a) {
   return a;    return a;
 }  }
   
 warning_yylex_polymake(char *s) {  void warning_yylex_polymake(char *s) {
   fprintf(stderr,"Warning: %s",s);    fprintf(stderr,"Warning: %s",s);
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>