[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flex 2.5.31 m4 bug
From: |
Bruce Lilly |
Subject: |
Re: Flex 2.5.31 m4 bug |
Date: |
Wed, 16 Apr 2003 08:20:24 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 |
John wrote:
Currently, it is invalid to have the sequences [[ or ]] anywhere
within the flex input, as they are the quote sequences for the m4
processing phase. This is documented in the manual under the appendix
`m4 dependency'.
One obvious solution is for flex to completely parse the C code in the
input actions. A less obvious solution escapes me at the moment!
How about using a character or character sequence that doesn't appear
in the input? Of course, that means a pre-pass over the input to find
an appropriate character or sequence, but that's better than a failure
with cryptic error messages on valid lex input. Chances are good that
for any reasonable input file, there is some (8-bit) character that
doesn't appear, and there will always be some sequence that doesn't
appear.