help-flex
[Top][All Lists]
Advanced

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

Re: reentrant issue


From: W. L. Estes
Subject: Re: reentrant issue
Date: Mon, 11 Nov 2002 09:29:31 -0500
User-agent: Mutt/1.3.28i

On Monday, 11 November 2002,16:04 +0200, Danut Lipsa wrote:

> I create a grammar for parsing SQL commands. I cannot use %pointer option 
> because of strings containing escaped quotes. I need to use %array option 
> in case input Sql contains strings, which have an escaped quote in them 

Use states to parse strings. It's discussed in the manual.

> string or a part of the string. This cannot be achieved if I use the 
> %pointer option. And if I use the %array option , this is not compatible 
> with the -+ option which creates the yyFlexLexer object. I need to make 
> the code reentrant so I need -+ option.
> Can someone help me with this.

Have a look at beta releases of flex which can be found at:

ftp://ftp.uncg.edu/people/wlestes/

Which contain a reentrant C parser--although it's not what you need.

--Will




reply via email to

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