help-flex
[Top][All Lists]
Advanced

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

RE: Nested comments


From: Hans Aberg
Subject: RE: Nested comments
Date: Thu, 3 Jul 2003 00:56:23 +0200

At 18:17 -0400 2003/07/02, address@hidden wrote:
>>Read Jeff Friedl's book, especially chapter 6, and then
>ask again if you
>>still need help
>
>I doubt that will be of much help. This user obviously
>understands regexps and PDAs enough to have already
>optimized the obvious (and most maintainable) solution:
>
><COMMENT>{
>"[*"   ++level;
>"*]"   if (!--level) BEGIN(0);
>.|\n   ;
>}

The Flex manual suggests one should try to eat as much as possible in each
rule, and a tried to optimize it that way.

  Hans Aberg
                  * Email: Hans Aberg <mailto:address@hidden>
                  * Home Page: <http://www.math.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>






reply via email to

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