Article View: comp.bugs.4bsd
Article #1166Bug in lex?!?
From: josh Siegel
Date: Mon, 12 Sep 1988 17:03
Date: Mon, 12 Sep 1988 17:03
30 lines
692 bytes
692 bytes
(I have only tested this under SunOS 4.0 and BSD4.3)
The following code makes lex produce C code with a syntax error in it:
-----
W [ \t]+
%%
^{W}% { }
%%
same for:
-----
W [ \t]+
%%
^{W}\% { }
%%
but not for:
-----
%%
^[ \t]+% { }
%%
Comments?
--Josh Siegel
--
Josh Siegel (siegel@hc.dspo.gov)
I like using a C-47A "puff dragon" to go shooting beer cans with.
Technical Details
Message-ID:
<14373@hc.DSPO.GOV>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!hc!siegelShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!hc!siegel From: siegel@hc.DSPO.GOV (josh Siegel) Newsgroups: comp.bugs.4bsd Subject: Bug in lex?!? Message-ID: <14373@hc.DSPO.GOV> Date: 12 Sep 88 17:03:16 GMT Organization: Los Alamos National Laboratory Lines: 30