File: comment.l

package info (click to toggle)
python-igraph 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,944 kB
  • sloc: ansic: 225,735; cpp: 23,208; python: 17,085; xml: 2,407; yacc: 1,164; sh: 531; lex: 486; pascal: 158; sed: 45; makefile: 23; javascript: 20; fortran: 8
file content (14 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%{
#include <stdio.h>

/* extern FILE *commentFile, *localVarFile, *codeFile; */

%}

whitespace [\n\t ]*
any	   .*

%%
"*/"{whitespace}"/*"         {yytext[0]=yytext[1]=yytext[yyleng-1]=yytext[yyleng-2]=' ';printf("%s",yytext);}
"\n"                         {printf("%s", yytext);}
.                            {printf("%s", yytext);}