Re: Flex and Lex interpreting regex differently

mjmjenks@gmail.com
Mon, 13 Oct 2008 11:32:39 -0700 (PDT)

          From comp.compilers

Related articles
Flex and Lex interpreting regex differently mjmjenks@gmail.com (2008-10-13)
Re: Flex and Lex interpreting regex differently jdenny@ces.clemson.edu (Joel E. Denny) (2008-10-13)
Re: Flex and Lex interpreting regex differently mjmjenks@gmail.com (2008-10-13)
| List of all articles for this month |

From: mjmjenks@gmail.com
Newsgroups: comp.compilers
Date: Mon, 13 Oct 2008 11:32:39 -0700 (PDT)
Organization: Compilers Central
References: 08-10-018 08-10-019
Keywords: lex
Posted-Date: 14 Oct 2008 06:30:27 EDT

On Oct 13, 11:36 am, "Joel E. Denny" <jde...@ces.clemson.edu> wrote:
> On Mon, 13 Oct 2008 mjmje...@gmail.com wrote:


> The difference is whether that "?" after the "{ScaleFactor}" applies to
> the "{digit}+" at the end of "{ScaleFactor}" or to all of "{ScaleFactor}".


Yes, this was the problem. I suppose I just assumed that lex would
automatically add parentheses to regular definitions. (The syntax
does seem to suggest it though...)


Thanks
[I think it's a bug. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.