|
From: | Fred 24 |
Subject: | Re: flex help |
Date: | Tue, 16 Jul 2002 14:00:53 +0000 |
ok that looks like : flex file : _select [sS][eE][lL][eE][cC][tT] ws [ \t\r\n]+ {_select} return SELECT; {ws} /* SKIP */ "*" return STAR; bison file : SELECT STAR Now suppose I write : SELECT'\n' *I think the problem is when a '\n' occurs, it is eat up so the parser read SELECT* and it don't reconize the SELECT token !!! and if I remove the {ws} the parser read SELECT '\n' * so it don't reconize the '\n'. What can I do ???
Thanks for your help !
From: John Millaway <address@hidden> To: Fred 24 <address@hidden>, address@hidden Subject: Re: flex help Date: Mon, 15 Jul 2002 14:11:24 -0700 (PDT) Please post your scanner/parser. So we can figure out what the problem is. --- Fred 24 <address@hidden> wrote: > (Please reply to my email address) >> It works but when no space occurs it throws an error. Let me show you what> I'm talking about. Suppose I write the statement in an editor like this: > > SELECT'space''\n' > * > > it works !!! > > > SELECT'\n' > * > > doesn't works !!! > > Any suggestion to make it works ??? > Thanks in advance :) __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
_________________________________________________________________MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
[Prev in Thread] | Current Thread | [Next in Thread] |