%{
int count_r = 0;
%}
durchmesser [1-2][0-9][05]
abflachung [/][5-9][05]
felgen [1][2-7]
reifen {durchmesser}{abflachung}?[ ]R[ ]{felgen}[ ]
%%
{reifen}Q { printf ("%s max. 160 km/h \n", yytext); count_r++; } {reifen}T { printf ("%s max. 190 km/h \n", yytext); count_r++; } {reifen}H { printf ("%s max. 210 km/h \n", yytext); count_r++; } {reifen}V { printf ("%s max. 240 km/h \n", yytext); count_r++; }
\n { ; } . { ; }
%%
yywrap (void) {
printf ("\nDie Liste enthaelt %i Reifen. \n", count_r);
}
0
1 x varobj
2 y varobj
3 P1 procobj
4 P3 procobj
5 x varobj
6 u varobj
7 v varobj
8 P4 procobj
9 a varobj
10 x varobj
11 y varobj
Die Variable u wird zum Zeitpunkt der Übersetzung des Rumpfes der Prozedur P4 vom untere Ende der Symboltabelle her gesucht und auf Position 6 gefunden.
HP x, y
P1 x, y, z
P2 a, b, z
P3 x, u, v
P4 a, x, y