From 51e21a316be6e052251b3dfc7d671061ebd67cee Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Dec 2009 18:03:28 +0000 Subject: Removed the old trunk contents. About to load up m3 --- src/bfilt/c++/bfilt-c++.l | 64 ----------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 src/bfilt/c++/bfilt-c++.l (limited to 'src/bfilt/c++') diff --git a/src/bfilt/c++/bfilt-c++.l b/src/bfilt/c++/bfilt-c++.l deleted file mode 100644 index 4e71649..0000000 --- a/src/bfilt/c++/bfilt-c++.l +++ /dev/null @@ -1,64 +0,0 @@ -%{ -# include - -int nBC = 0; -%} - -%s hasT -%x inWith -%x inT -%option noyywrap nounput batch - -%% - -"operator<<" { ECHO; } -"operator>>" { ECHO; } -"operator". { ECHO; } - -"<<" { ECHO; } -">>" { ECHO; } -" <<" { ECHO; } -" >>" { ECHO; } -"'<'" { ECHO; } -"'>'" { ECHO; } - -"" { ECHO; } - -\n+ { - BEGIN( INITIAL ); - nBC = false; - ECHO; -} - -" <" { ECHO; } - -"<" { - BEGIN( inT ); - printf("<...>"); - nBC++; -} - -"<" { - nBC++; - -} -[^<>]* { } -">" { - nBC--; - if( nBC == 0 ) - BEGIN( hasT ); -} - -" [with"[^\]]*"]" { } - -%% - -int main() -{ - yyin = stdin; - - yylex(); - - return 0; -} - -- cgit v1.2.3