POV-Ray : Newsgroups : povray.off-topic : Mini-languages : Re: Mini-languages Server Time
3 Sep 2024 21:15:59 EDT (-0400)
  Re: Mini-languages  
From: scott
Date: 9 Nov 2010 03:53:35
Message: <4cd90c0f@news.povray.org>
>> In short, people tend to use regexs for quick and dirty hacks that kinda
>> work, rather than doing the job properly with a full parser. And I'm
>> really not fond of hacks.
>
>  Writing a parser, even with the aid of a specialized description language
> such as BNF, is very laborious. Simple string matching can be often 
> expressed
> with very short regular expressions which you can write in a few seconds.
> Writing a parser would be complete overkill.

I think he meant using a parser library, not writing one from scratch. 
Indeed writing a parser (or a regex library) would be a total overkill for 
pretty much any project.


Post a reply to this message

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