Advertisement
Sri27119

cd1.1

Nov 20th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. %option noyywrap
  2. %%
  3. boolean|float|int|if|char printf("keywords");
  4. [0-9][0-9]* printf("constants");
  5. [a-zA-Z][a-zA-Z0-9]* printf("identifiers");
  6. %%
  7.  
  8. int main()
  9. {
  10.  
  11. yylex();
  12.  
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement