10 "class" { return CLASS; }
12 yylval.name = strdup(yytext);
14 printf("read: %c\n", *yytext);
22 yylval.name = strdup(yytext);
24 printf("read: %s\n", yytext);
25 printf("idf: %i\n", idf(yytext));
35 \/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/ ;
37 /* anything else is an error */
39 printf("read: '%c'\n", *yytext);
40 yyerror((char *)"invalid character");
51 char types[][99] = {"int", "float", ""};
53 for(i = 0; types[i][0]; i++) {
54 if(!strcmp(types[i], s)) {