Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%
- [t]+
- is |
- am |
- are |
- was |
- were {printf("%s: is a verb",yytext);}
- [a-zA-Z]+ {printf("%s: is a verb",yytext);}
- . |n
- %%
- int main(int argc, char *argv[]){
- yyin = fopen(argv[1], "r");
- yylex();
- fclose(yyin);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement