POV-Ray : Newsgroups : povray.general : long syntax : Re: long syntax Server Time
6 Aug 2024 04:22:46 EDT (-0400)
  Re: long syntax  
From: Antti Arola
Date: 24 Jul 2002 14:08:35
Message: <slrnajtr7h.91u.aea@skavara.ese>
On 24 Jul 2002, Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> I like C synax mose, and You ?

Perl is nicer:
@baz = $bar =~ /<img[^>]*src="([^">]*?$pattern[^">]*?)"/gi

But seriously, if POV's clear and descriptive SDL was a real
problem, it would've already been addressed. You know, one
of POV's oft-mentioned strong points is that one does not
need to be a programmer to use it.

That said, if the SDL bothers you, CHANGE IT. Write an
interface module that converts your SDL to POV and runs it
through the renderer. It's not even hard with today's
tools, such as Lex and Yacc, especially since you're only
replicating a well-known and -documented, structurally
simple grammar. If you want the very easy way out, you
could even skip the POV syntax checking and just implement
your shorthand grammar, since POV can report any SDL
errors.

-- 
Antti Arola, edistyksenvastainen retropaskiainen

This message written by a complete asshole.


Post a reply to this message

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