help-flex
[Top][All Lists]
Advanced

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

Re: flex needs spurious whitespace?


From: Vern Paxson
Subject: Re: flex needs spurious whitespace?
Date: Fri, 28 Sep 2001 01:31:39 -0700

> 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.

Lex's input format is defined to have the regular expression separated
from the action by whitespace.  So to have any literal whitespace in a
rule, you need to escape it in some form.

                Vern



reply via email to

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