This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
low level macros & reflection
- To: guile at sourceware dot cygnus dot com
- Subject: low level macros & reflection
- From: <ctest at neural dot dlsemc dot com>
- Date: Tue, 29 Aug 2000 14:34:26 -0500
hi. I thought it would be a neat idea to learn how to redefine the syntax
in guile, so that i could gest some ideas on how to develop a elegant
semantic and syntax for a language to solve a limited scope of problems
for the users. (i.e. would be making it easier to use for certain end users)
Some example cases which i was thinking would be good demonstrations of the
functions to learn on would be #1 makeing guile use postfix operators instead
of prefix operators, and #2 makeing the function (print.neatword) print out
the string of whatever was placed in "neatword".
in order to define everything as first class objects from inside of scheme,
i'll obviously need to use some reflective properties, of which if i'm reading
right, the "low-level" macro functions provide.
i've found procedure->syntax, procedure->macro, and
procedure->memoizing-macro, which all talk about passing the enviroment to
the function. However i still don't understand how to access the enviroment,
as to determine the name of the function that was just called (for example #2)
are there any examples that i can look up, or can anyone describe for me how
i should go about accessing this data from inside of scheme?
Corey