POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: Status of Moray? Server Time
22 Apr 2025 07:40:38 EDT (-0400)
  Re: Status of Moray?  
From: "Jérôme M. Berger"
Date: 9 Sep 2007 11:54:05
Message: <46e4171d$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thorsten Froehlich wrote:

>> Because of this, they have a
>> syntax that is *very* easy to parse for a computer (as an example,
>> the XML grammar fits in about 200 lines, whereas the C grammar takes
>> over 400 lines (and that's *without* the preprocessor!)
> 
> No XML is better discussion (not sure if that is your argument or not),
> please, those lead nowhere. XML being easy to parse is not an argument for
> anybody who knows something about (programming) language theory - the
> complexity of a grammar* isn't defined by the name of the language after all ;-)
> 
	I don't understand your answer so I can't really answer to it, but
I'll try to clarify my post:

 - I wasn't advocating XML (although there are situations where it
is useful). Especially not for a 3D scene description language;

 - Nemesis was complaining about the poor readability and
human-friendliness of languages like XML and RIB. I simply pointed
out that these languages were not intended by their creators to be
manipulated by hand. As such, human-friendliness came as a poor
second to other criteria, like the ease of implementation which is a
prerequisite to wide acceptance. Unfortunately, a lot of people have
started advocating and using XML for situations it wasn't designed
for and fits poorly;

 - You say: "the complexity of a grammar isn't defined by the name
of the language". I especially don't understand what you mean by
that? I was using the number of lines of the BNF grammar as a
measurement for the complexity of the language. This shows that C is
much more complex than XML, especially if you include the
C-preprocessor in your estimation.

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD4DBQFG5Bccd0kWM4JG3k8RAiTFAJj46Uf2pfqjZ4TL/M2zgGTIcqDBAKC0uECj
u9Nv9zlr0SP/4uOE48K/Dg==
=soL5
-----END PGP SIGNATURE-----


Post a reply to this message

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