Subversion Repositories wimsdev

Rev

Rev 6872 | Rev 8206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6872 Rev 6906
Line 112... Line 112...
112
| Plus spc01 Int{$$.r=1.0*$3.i;}
112
| Plus spc01 Int{$$.r=1.0*$3.i;}
113
| Moins spc01 Int{$$.r=-1.0*$3.i;}
113
| Moins spc01 Int{$$.r=-1.0*$3.i;}
114
;
114
;
115
 
115
 
116
volt : /* rien */
116
volt : /* rien */
117
| spc01 Atome {if ($2.s.compare("V")!=0) yyerror ("only 'V' allowed as unit"); }
117
| spc01 Atome {if ($2.s.compare("V")!=0) yyerror (strdup("only 'V' allowed as unit")); }
118
;
118
;
119
 
119
 
120
id : Atome {/* $$.s contient le nom */}
120
id : Atome {/* $$.s contient le nom */}
121
;
121
;
122
 
122
 
Line 256... Line 256...
256
  }
256
  }
257
  return;
257
  return;
258
}
258
}
259
 
259
 
260
int main(int argc, char * argv[]){
260
int main(int argc, char * argv[]){
261
  char * optstr = "mMlcCwnesvh";
261
  char * optstr = strdup("mMlcCwnesvh");
262
  char * envoption=getenv("chemeq_option");
262
  char * envoption=getenv("chemeq_option");
263
  if (envoption==NULL) envoption=getenv("w_chemeq_option");
263
  if (envoption==NULL) envoption=getenv("w_chemeq_option");
264
  char * envinput =getenv("chemeq_input");
264
  char * envinput =getenv("chemeq_input");
265
  if (envinput==NULL) envinput=getenv("w_chemeq_input");
265
  if (envinput==NULL) envinput=getenv("w_chemeq_input");
266
  char asked[maxoption+1]="";
266
  char asked[maxoption+1]="";