This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

low level macros & reflection


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]