Re: How do I handle multiple line quoted strings in fLex?

Tim Perry <tperry@blinksoft.com>
12 Sep 1997 21:23:50 -0400

          From comp.compilers

Related articles
How do I handle multiple line quoted strings in fLex? tperry@blinksoft.com (Tim Perry) (1997-09-03)
Re: How do I handle multiple line quoted strings in fLex? hbabu@sequent.com (1997-09-07)
Re: How do I handle multiple line quoted strings in fLex? tperry@blinksoft.com (Tim Perry) (1997-09-12)
| List of all articles for this month |
From: Tim Perry <tperry@blinksoft.com>
Newsgroups: comp.compilers
Date: 12 Sep 1997 21:23:50 -0400
Organization: Compilers Central
Keywords: lex

On Sun, 7 Sep 1997, Haren Babu Myneni wrote:


> I was working a some parser which has similar string (String starts
> with " and ending with ". It also takes any escape character.). I
> used lex for lexical analyzer. I implemented the follwing way to
> increment line number if '\n' occurs in the middle of the
> string. Implementation is as follows.
>
> \" {
> yyleng = 0; c1=0; c2=0;
> end_str = FALSE;
> ...


Yes, thanks all that responded. I did't get it working a couple of days
ago. Thanks for the help.


Tim




--


Post a followup to this message

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