help-flex
[Top][All Lists]
Advanced

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

Re: Flex 2.5.31 m4 bug


From: John
Subject: Re: Flex 2.5.31 m4 bug
Date: Wed, 16 Apr 2003 16:45:22 -0400 (EDT)

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

The quotes are not generated at runtime, so that approach wouldn't
be possible. However, it would be possible to mangle the user code by
escaping the quotes.

I think we are going to trash the m4-based skeleton anyway, because it
only works with GNU m4. -John




reply via email to

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