13 "class" { printf("class\n"); return CLASS; }
15 yylval.s = strdup(yytext);
17 printf(": %c\n", *yytext);
26 printf(": %s\n", yytext);
27 //printf("idf: %i\n", idf(yytext));
37 \/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/ ;
41 /* anything else is an error */
43 printf(": '%c'\n", *yytext);
44 yyerror((char *)"invalid character");
55 //printf("passou por aqui: %s\n", s);
56 yylval.sv = new StringVec;
57 yylval.sv->vs.push_back(string(yytext));
58 //yylval.n = new Node;
59 //yylval.n->s = string(yytext);
61 char types[][99] = {"public", "private", "protected", ""};
63 for(i = 0; types[i][0]; i++) {
64 if(!strcmp(types[i], s)) {
65 if(i == 0) { //public index on types vector
66 member_scope_public = true;
68 member_scope_public = false;