chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] need idea for read-syntax


From: Felix Winkelmann
Subject: [Chicken-users] need idea for read-syntax
Date: Fri, 14 Nov 2003 12:51:21 +0100
User-agent: Opera7.21/Win32 M2 build 3218

Hi, all!

I would like to add a read-syntax for embedding C code into expressions
(as opposed to embedding it into the program itself, like "#> ... <#").
It must be possible to specify C code, with an optional type specification.

So far I have just come up with something like:

#>"doSomeInitStuff();"            ; embed statement (no type given)

(print #>"my_version_string" : c-string) ; embed expression (type given)

The #>" isn't particularly nice, since it overloads the #> syntax once again.
Some form of delimiter (like #[ ... ]) perhaps? I don't know.
#{ ... } is already used, #" ... " looks to generic, #/ ... / is probably
better for future regexes.

Any ideas are welcome.


cheers,
felix




reply via email to

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