diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
commit | 51e21a316be6e052251b3dfc7d671061ebd67cee (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/bfilt/c++ | |
parent | ad6f4dfcc671d3f8d458c42b0992956f2a2cf979 (diff) | |
download | build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.gz build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.bz2 build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.xz build-51e21a316be6e052251b3dfc7d671061ebd67cee.zip |
Removed the old trunk contents. About to load up m3
Diffstat (limited to 'src/bfilt/c++')
-rw-r--r-- | src/bfilt/c++/bfilt-c++.l | 64 |
1 files changed, 0 insertions, 64 deletions
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 @@ | |||
1 | %{ | ||
2 | # include <string> | ||
3 | |||
4 | int nBC = 0; | ||
5 | %} | ||
6 | |||
7 | %s hasT | ||
8 | %x inWith | ||
9 | %x inT | ||
10 | %option noyywrap nounput batch | ||
11 | |||
12 | %% | ||
13 | |||
14 | "operator<<" { ECHO; } | ||
15 | "operator>>" { ECHO; } | ||
16 | "operator". { ECHO; } | ||
17 | |||
18 | "<<" { ECHO; } | ||
19 | ">>" { ECHO; } | ||
20 | " <<" { ECHO; } | ||
21 | " >>" { ECHO; } | ||
22 | "'<'" { ECHO; } | ||
23 | "'>'" { ECHO; } | ||
24 | |||
25 | "<anonymous>" { ECHO; } | ||
26 | |||
27 | \n+ { | ||
28 | BEGIN( INITIAL ); | ||
29 | nBC = false; | ||
30 | ECHO; | ||
31 | } | ||
32 | |||
33 | " <" { ECHO; } | ||
34 | |||
35 | "<" { | ||
36 | BEGIN( inT ); | ||
37 | printf("<...>"); | ||
38 | nBC++; | ||
39 | } | ||
40 | |||
41 | <inT>"<" { | ||
42 | nBC++; | ||
43 | |||
44 | } | ||
45 | <inT>[^<>]* { } | ||
46 | <inT>">" { | ||
47 | nBC--; | ||
48 | if( nBC == 0 ) | ||
49 | BEGIN( hasT ); | ||
50 | } | ||
51 | |||
52 | <hasT>" [with"[^\]]*"]" { } | ||
53 | |||
54 | %% | ||
55 | |||
56 | int main() | ||
57 | { | ||
58 | yyin = stdin; | ||
59 | |||
60 | yylex(); | ||
61 | |||
62 | return 0; | ||
63 | } | ||
64 | |||