POV-Ray : Newsgroups : povray.general : Wishlist : Re: Wishlist Server Time
29 Jul 2024 10:31:28 EDT (-0400)
  Re: Wishlist  
From: Chris TRIBBECK
Date: 23 Aug 2002 10:52:39
Message: <3d664c37@news.povray.org>
> > 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.