help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flex needs spurious whitespace?


From: Clint Jeffery
Subject: flex needs spurious whitespace?
Date: Thu, 27 Sep 2001 15:16:18 -0600 (MDT)

Why does the first version of the whitespace comment eater below pass
flex with no complaints, while the second one generates errors?  Note
that the only difference is the absence of (seemingly needless) whitespace.
Is this a known bug?  It is not in the flex manual's "bugs" section.

Cheers,
Clint Jeffery, address@hidden

--- example flex input (foo.l) below this point.
%%
"/*" ([^*] | ("*" / [^/])) * "*/"       {/*do nothing. eat comments*/}
"/*"([^*]|("*"/[^/]))*"*/"      {/*do nothing. eat comments*/}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]