help-flex
[Top][All Lists]
Advanced

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

Re: Nested comments


From: john43
Subject: Re: Nested comments
Date: Sat, 5 Jul 2003 18:15:46 -0400

>It would probably be nice with a line counting
> method that does not have to rescan the match.

As it is now, line counts are nearly free if you 
separate the rules that could match newlines from the 
rules which could never match newlines. The mechanism is 
best suited to scanners which discard whitespace.

>BTW, what happens if the match does not fit into the
>buffer, which might happen if the comment is very long?

The buffer grows with realloc(). However, recall that 
the default buffer size is 16k.

-John




reply via email to

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