8 static int yywrap () { return 1; }
21 yylval.s = malloc(strlen (yytext));
22 strcpy(yylval.s, yytext+1);
23 yylval.s[strlen(yylval.s)-1] = 0;
28 yylval.i = strtol(yytext,0,16);
33 yylval.i = atoi(yytext);
38 "bits" { yylval.i =1 ;return UNIT;}
39 "bit" { yylval.i = 1; return UNIT;}
40 "bytes" { yylval.i= 8; return UNIT;}
41 "byte" { yylval.i = 8; return UNIT;}
43 "int" { yylval.s = "INT"; return TYPE;}
44 "barray" { yylval.s = "BARRAY"; return TYPE;}
45 "chars" { yylval.s = "CHARS"; return TYPE;}
46 "variable" { yylval.i = 0; return NUMBER;}
47 "counted" { yylval.i = -4; return NUMBER;}
48 "addrsize" { yylval.i = -2; return NUMBER; }
49 "segsize" { yylval.i = -1; return NUMBER; }
50 "cond" { return COND;}
51 "repeat" { return REPEAT;}