home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume6 / glib / part01 / makevish.l < prev    next >
Encoding:
Lex Description  |  1989-05-14  |  345 b   |  25 lines

  1. %{
  2. /* $Id: makevish.l,v 1.6 89/05/06 17:13:36 lee Exp $
  3.  * Greg Lee
  4.  * $Log:    makevish.l,v $
  5.  * Revision 1.6  89/05/06  17:13:36  lee
  6.  * rel. to comp.sources.misc
  7.  * 
  8.  */
  9.     int i;
  10. %}
  11.  
  12. %%
  13.  
  14. ^"char *"[ \t\n]*"vis"[0-9A-Za-z_]+[ ]*"("  {
  15.     i = 6;
  16.     while (yytext[i++] != 's') ;
  17.     printf("char *vis%s);\n", yytext+i);
  18. };
  19.  
  20. .    ;
  21. \n    ;
  22.  
  23. %%
  24. main() { yylex(); }
  25.