POV-Ray : Newsgroups : povray.off-topic : Pointless but satisfying : Re: Pointless but satisfying Server Time
5 Sep 2024 13:16:41 EDT (-0400)
  Re: Pointless but satisfying  
From: Invisible
Date: 17 Jul 2009 05:34:50
Message: <4a6045ba$1@news.povray.org>
>> variable names unique, while correctly respecting the language scoping 
>> rules.
> 
> Only surprising if you haven't written LISP code. :-)

...or a lambda calculus interpretter. :-P

> Still sounds easier to debug than crashing kernel code on a machine with 
> insufficient memory to host a debugger or compiler. :-)

Probably, yes.


Haskell really is a PITA to parse. I mean, think about it:
- Whitespace is significant. (No context-free parsing here!)
- There are arbitrary user-defined operators, which arbitrary precedence 
and associativity.

Mercifully, there are few language keywords. (There's a lot more than 
you think, when you sit down and catelogue them, but it's still nothing 
compared to, say, Pascal or C.)

Even so, when a user can define an operator like *&*#*|* and set it to 
any precedence or associativity, it's not so easy to produce a parse tree...


Post a reply to this message

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