31 printf("COMMENT LINE:");ECHO;
39 printf("COMMENT:");ECHO;
47 printf("CONTINUE LINE:");ECHO;
62 /* use to drop blankspace/tab/cr */
74 strncpy(yylval.sval, yytext,31);
75 for(unsigned int c=0;c<strlen(yylval.sval);c++)
77 if(islower(yylval.sval[c]))
78 yylval.sval[c]=toupper(yylval.sval[c]);
114 printf("KEYWORD:");ECHO;
116 strncpy(yylval.sval, yytext,31);
117 for(unsigned int c=0;c<strlen(yylval.sval);c++)
119 if(islower(yylval.sval[c]))
120 yylval.sval[c]=toupper(yylval.sval[c]);
126 <PARAMETERS>X"."ORG |//copyed by zhangxih ----06-12-20
127 <PARAMETERS>Y"."ORG |
129 <PARAMETERS>WAVELEN |
130 <PARAMETERS>INTENSITY |
131 <PARAMETERS>WAVE"."STA |
132 <PARAMETERS>WAVE"."END |
133 <PARAMETERS>WAVE"."NUM |
134 <PARAMETERS>RAY"."WIDTH |
135 <PARAMETERS>QUAN"."EFF |
138 <PARAMETERS>phase"."diff |
140 <PARAMETERS>powerlo |
141 <PARAMETERS>powerhi |
143 <PARAMETERS>Tradius |
151 <PARAMETERS>X"."Min |
152 <PARAMETERS>X"."Left |
153 <PARAMETERS>X"."Max |
154 <PARAMETERS>X"."Right |
155 <PARAMETERS>Y"."Min |
156 <PARAMETERS>Y"."Bottom |
157 <PARAMETERS>Y"."Max |
158 <PARAMETERS>Y"."Top |
159 <PARAMETERS>CentreX |
160 <PARAMETERS>CentreY |
161 <PARAMETERS>MajorRadii |
162 <PARAMETERS>MinorRadii |
165 <PARAMETERS>Encroach |
166 <PARAMETERS>Y.Lower |
167 <PARAMETERS>VOL.RAT |
168 <PARAMETERS>Grading |
170 <PARAMETERS>Y.Middle |
173 <PARAMETERS>N"."Peak |
175 <PARAMETERS>X"."CHAR |
176 <PARAMETERS>Y"."CHAR |
177 <PARAMETERS>XY"."RATIO |
178 <PARAMETERS>Y"."JUNCTION |
179 <PARAMETERS>X"."MOLE |
180 <PARAMETERS>Mole"."Slope |
181 <PARAMETERS>Mole"."End |
182 <PARAMETERS>Z.Width |
183 <PARAMETERS>LatticeTemp |
184 <PARAMETERS>DopingScale |
207 <PARAMETERS>Thickness |
209 <PARAMETERS>Heat"."Transfer |
210 <PARAMETERS>EXT"."TEMP |
211 <PARAMETERS>WorkFunction |
212 <PARAMETERS>VBarrier |
213 <PARAMETERS>Dispersion |
214 <PARAMETERS>DivisionRatio |
215 <PARAMETERS>QNFactor |
216 <PARAMETERS>QPFactor |
217 <PARAMETERS>relative"."tol |
218 <PARAMETERS>toler"."relax |
219 <PARAMETERS>possion"."tol |
220 <PARAMETERS>elec"."continuty"."tol |
221 <PARAMETERS>hole"."continuty"."tol |
222 <PARAMETERS>latt"."temp"."tol |
223 <PARAMETERS>elec"."energy"."tol |
224 <PARAMETERS>hole"."energy"."tol |
225 <PARAMETERS>elec"."quantum"."tol |
226 <PARAMETERS>hole"."quantum"."tol |
227 <PARAMETERS>electrode"."tol |
230 <PARAMETERS>VStepMax |
240 <PARAMETERS>FMultiple |
242 <PARAMETERS>AutoSave |
243 <PARAMETERS>AzAngle |
244 <PARAMETERS>ElAngle {
247 printf("PARAMETER:");ECHO;
249 strncpy(yylval.sval, yytext,31);
250 for(unsigned int c=0;c<strlen(yylval.sval);c++)
252 if(isupper(yylval.sval[c]))
253 yylval.sval[c]=tolower(yylval.sval[c]);
255 return REAL_PARAMETER;
261 <PARAMETERS>IX"."Min |
262 <PARAMETERS>IX"."Left |
263 <PARAMETERS>IX"."Max |
264 <PARAMETERS>IX"."Right |
265 <PARAMETERS>IY"."Min |
266 <PARAMETERS>IY"."Bottom |
267 <PARAMETERS>IY"."Max |
268 <PARAMETERS>IY"."Top |
271 <PARAMETERS>N"."Spaces |
272 <PARAMETERS>Division |
273 <PARAMETERS>MaxIteration |
274 <PARAMETERS>ServerPort {
277 printf("PARAMETER:");ECHO;
279 strncpy(yylval.sval, yytext,31);
280 for(unsigned int c=0;c<strlen(yylval.sval);c++)
282 if(isupper(yylval.sval[c]))
283 yylval.sval[c]=tolower(yylval.sval[c]);
285 return INT_PARAMETER;
289 <PARAMETERS>Direction |
291 <PARAMETERS>Material |
292 <PARAMETERS>Location |
294 <PARAMETERS>Mole.Grad |
295 <PARAMETERS>ModelFile |
296 <PARAMETERS>Triangle |
298 <PARAMETERS>Carrier |
301 <PARAMETERS>Variable |
302 <PARAMETERS>Measure |
304 <PARAMETERS>Mobility |
305 <PARAMETERS>II.Model |
306 <PARAMETERS>Optical.Model |
310 <PARAMETERS>Damping |
311 <PARAMETERS>II"."Type |
312 <PARAMETERS>IVRecord |
314 <PARAMETERS>CoreFile |
315 <PARAMETERS>AscFile |
316 <PARAMETERS>VTKFile |
317 <PARAMETERS>Segment |
318 <PARAMETERS>ProbeFile |
319 <PARAMETERS>Electrode |
320 <PARAMETERS>ConnectTo |
326 <PARAMETERS>ODE"."Formula |
329 <PARAMETERS>Resolution |
331 <PARAMETERS>TIFF.Out |
335 printf("PARAMETER:");ECHO;
337 strncpy(yylval.sval, yytext,31);
338 for(unsigned int c=0;c<strlen(yylval.sval);c++)
340 if(isupper(yylval.sval[c]))
341 yylval.sval[c]=tolower(yylval.sval[c]);
343 return STRING_PARAMETER;
347 <PARAMETERS>Fix.Lower |
348 <PARAMETERS>HighFieldMobility |
349 <PARAMETERS>ImpactIonization |
350 <PARAMETERS>BandBandTunneling |
352 <PARAMETERS>PseudoTime |
354 <PARAMETERS>EJModel {
357 printf("PARAMETER:");ECHO;
359 strncpy(yylval.sval, yytext,31);
360 for(unsigned int c=0;c<strlen(yylval.sval);c++)
362 if(isupper(yylval.sval[c]))
363 yylval.sval[c]=tolower(yylval.sval[c]);
365 return BOOL_PARAMETER;
419 sscanf(yytext, "%d", &yylval.ival);
421 printf("int_value: %d",yylval.ival);
427 <PARAMETERS>{D}+"."{D}*({E})? |
428 <PARAMETERS>{D}*"."{D}+({E})? |
429 <PARAMETERS>{D}+({E}) {
430 sscanf(yytext, "%lf", &yylval.dval);
432 printf("double_value: %lf",yylval.dval);
447 printf("BOOL True:%s",yytext);
462 printf("BOOL False:%s",yytext);
468 <PARAMETERS>[a-zA-Z0-9\_][a-zA-Z0-9\.\_]* {
470 printf("STRING:%s",yytext);
472 strncpy(yylval.sval,yytext,31);
478 <PARAMETERS>\"[a-zA-Z0-9\.\_\ \-]*\" {
479 yytext[yyleng-1]='\0';
481 printf("STRING:%s",&yytext[1]);
483 strncpy(yylval.sval, &yytext[1],31);
487 <COMMAND>[a-zA-Z0-9[:punct:]]+ {
488 printf("Bad String: %s",yytext);
489 strncpy(yylval.sval,yytext,31);
498 printf("\nline %d\n",yylineno);