POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
3 Sep 2024 21:14:44 EDT (-0400)
  Re: Mini-languages  
From: Warp
Date: 5 Nov 2010 13:26:48
Message: <4cd43e57@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> It's not the concept of a regular expression as such. It's the fact that 
> all known implementations work by mixing up code and data in the same 
> encrypted string.

  I don't understand what you mean by that.

> OK, so it's convenient to be able to say "foo*bar" and mean "any string 
> that starts with 'foo' and ends with 'bar'".

  Actually it doesn't mean that.

> But by the time you've 
> added 25 different special characters with a dense set of possible means 
> such that you have an almost Turing-complete language, my reaction is 
> "for God's sake, stop trying to encode the entire language grammar into 
> a text string and go use a /real/ programming language!"

  Regular expressions define less than 10 special characters (vertical bar
signifying in practice a boolean 'or', parentheses for grouping, two
quantification symbols and one "wildcard" symbol). Extended regular
expressions add a few more (the '+' quantification symbol and []), but
the total still remains under 10.

  Regular expressions are nowhere near Turing strong. They are state
machines.

  I don't know what you are confusing regular expressions with, but they
are not that complicated.

-- 
                                                          - Warp


Post a reply to this message

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