help-bison
[Top][All Lists]
Advanced

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

Re: Flex help anyone ?


From: wim delvaux
Subject: Re: Flex help anyone ?
Date: Tue, 13 Jan 2004 17:46:31 +0100
User-agent: KMail/1.5.4

On Tuesday 13 January 2004 16:56, Mike Aubury wrote:
> Yes - I know this is a bison list - but someone might know...
>
>
> I've got to detect strings so I have matches for :
>
> \"[^\"]+\"    {  return CHAR_VALUE;}
> \"\" { return CHAR_VALUE;}
>
>
>
>
> in my flex definition file (or similar at least)
> (The first for a string, the second for an empty string)
>
>
>
> In the language I'm trying to parse - its permissible to embed quotes
> within a string if you double up..
>
> so :
>
>       "Hello ""World"" would be ok"
>
> Obviously - I'm getting this back as three strings ("Hello " , "World"  &
> "would be ok") which is messing up the parser...
>
>
> Any ideas ?


\"(\"\"|[^"])*\"

>
>
>
> _______________________________________________
> address@hidden http://mail.gnu.org/mailman/listinfo/help-bison





reply via email to

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