Skip to content

Instantly share code, notes, and snippets.

@angusb
Created October 12, 2010 21:15
Show Gist options
  • Save angusb/622940 to your computer and use it in GitHub Desktop.
Save angusb/622940 to your computer and use it in GitHub Desktop.
[Pp][Rr][Oo][Gg][Rr][Aa][Mm] fprintf(yyout,"%s 7 ",yytext);
([\"][^\"]*[\"])|([\'][^\']*[\']) fprintf(yyout,"%s 15 ",yytext);
("\(\*"[^\)\*]*"\)\*")|"(*)" (for whitespace)
replace the top two lines with their corresponding fprintf's in the lexfile provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment