guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding stuff to the core distro (was Re: Infix syntax)


From: tomas
Subject: Re: Adding stuff to the core distro (was Re: Infix syntax)
Date: Sat, 19 Oct 2002 06:50:56 +0200
User-agent: Mutt/1.3.24i

On Wed, Oct 16, 2002 at 11:35:15PM +0200, Daniel Skarda wrote:
> 

[Neil: macro instead of read-hash-extension]

>   Wow, that's clever. It seems I played with read hash extension too much 
> that I
> have not noticed simpler (and schemish) way... (On the other hand, #[] is 
> shorter :-)

Isn't Scheme surprising to us mortals ;-)

[...]

>   No other tricky whitespace handling is performed (it would be dangerous, 
> since
> #\- and #\* are often used in scheme symbols).

Albeit dangerous, I'd vote for having it (as an option, at least). It should 
just
accept ``classical'' identifiers (C-like if you wish). Background: I'm playing 
with
the idea of letting users enter formulas for a small application (users not 
aware
of Scheme), and I think the ``classical'' syntax is easier to grasp for them.

>   infix.scm proposal, second edition:
>  ------------------------------------- 

[snip]

Yes, makes sense to let the macro expander do the parse work. Maybe a
first-stage tokenizer for the ``micro-syntax'' (this would be called
a lexer in a more traditional framework?) could be thrown in as an
option.

Thanks
-- tomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]