Rev 104 | Rev 13121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 104 | Rev 12963 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | 24 | ||
25 | %% |
25 | %% |
26 | /* les règles */ |
26 | /* les règles */ |
27 | 27 | ||
28 | /* pour les atomes */ |
28 | /* pour les atomes */ |
29 | Uu[a-z]|[A-Z][a-z]? { /* |
29 | Uu[a-z]|[A-Z][a-z]? { /* éléments Uux : transuraniens après le N° 109 |
30 | les autres sont les éléments ordinaires */ |
30 | les autres sont les éléments ordinaires */ |
31 | int i = 0; |
31 | int i = 0; |
32 | position += strlen(yytext); |
32 | position += strlen(yytext); |
33 | while (lesatomes[i].Zed != 0 && strcmp(yytext, lesatomes[i].symb)) i++; |
33 | while (lesatomes[i].Zed != 0 && strcmp(yytext, lesatomes[i].symb)) i++; |
34 | if (lesatomes[i].Zed == 0){ |
34 | if (lesatomes[i].Zed == 0){ |
Line 78... | Line 78... | ||
78 | \+ {position ++; return Plus;} |
78 | \+ {position ++; return Plus;} |
79 | \* {position ++; return Mul;} |
79 | \* {position ++; return Mul;} |
80 | {fleche} {position += strlen(yytext); return Fleche;} |
80 | {fleche} {position += strlen(yytext); return Fleche;} |
81 | {spc} {position += strlen(yytext); return Spc;} |
81 | {spc} {position += strlen(yytext); return Spc;} |
82 | \^ {position ++; return Haut;} |
82 | \^ {position ++; return Haut;} |
83 |
|
83 | _\(s\)|_s|s {position += strlen(yytext); return Sol;} |
- | 84 | _\(l\)|_l|l {position += strlen(yytext); return Liq;} |
|
84 |
|
85 | _\(g\)|_g|g {position += strlen(yytext); return Gas;} |
85 |
|
86 | _\(aq\)|_ag|aq {position += strlen(yytext); return Aqueous;} |
86 | = {position ++; return Egal;} |
87 | = {position ++; return Egal;} |
87 | # {position ++; return Compose;} |
88 | # {position ++; return Compose;} |
88 | ~ {position+=2; return AntiCompose;} |
89 | ~ {position+=2; return AntiCompose;} |
89 | {eol} {/* rien c'est la fin des entrées */} |
90 | {eol} {/* rien c'est la fin des entrées */} |
90 | .|\n {position += strlen(yytext); /* rien */} |
91 | .|\n {position += strlen(yytext); /* rien */} |