POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
4 Sep 2024 05:14:59 EDT (-0400)
  Re: Mini-languages  
From: Invisible
Date: 12 Nov 2010 04:13:59
Message: <4cdd0557$1@news.povray.org>
>> If there are more than three digits, the above parser fails, and no
>> other alternatives are tried (i.e., no backtracking).
>
> Then you aren't doing what regular expressions can do.

I don't see how that is the case.

> In order to *get* the power of regexp, *your* parser has to backtrack.
> So if you turn backtracking off, there are trivial regular expressions
> you can't match. If you turn backtracking on, you're using more time and
> space than a regular expression engine.

Do you have a concrete example?


Post a reply to this message

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