Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %{
- #include <stdio.h>
- int T[30];
- %}
- %%
- [a-zA-Z]+ { T[yyleng]++; }
- .\n ;
- %%
- int yywrap()
- {
- int i;
- for(i=0;i<30;i=i+1){
- if(T[i] > 0) {
- printf("Il y a %d mots de longueur %d\n", T[i], i);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement