Bug in lex?!?

josh Siegel siegel at hc.DSPO.GOV
Tue Sep 13 03:03:16 AEST 1988


(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 at hc.dspo.gov)
I like using a C-47A "puff dragon" to go shooting beer cans with.



More information about the Comp.bugs.4bsd.ucb-fixes mailing list