|
![](/i/fill.gif) |
> > I will soon write a lexer for the POV-Ray syntax, supporting nested
> > comments. Due to constraints to the lexing method, the nesting level
will be
> > limited. I feel that 3 levels is enough for most needs (commenting out a
> > zone with comments, and commenting out again this zone) but if you think
it
> > needs more, I can go up to, say, 8 levels.
>
> how about letting the user define the level (or at least at compile-time)
?
Why limit it at all ? All you need is to add 1 each time you reach a /*,
subtract 1 each time you reach a */, and when it's 0, you're no longer in
comments. I can't see why you need a limit...
Post a reply to this message
|
![](/i/fill.gif) |