This is the mail archive of the guile@sourceware.cygnus.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]

Re: [Q] How to hook up the GUILE parser?


| Now my question: how do I set up a string port that does this, and how
| do I read back the number of characters taken from the port?

You could probably write a modified version of scm_eval_string from
libguile/strports.c that would do what you want.  To get the number of
characters read, you could either look at the various read_buf
pointers in the port internals, or simply call scm_ftell or scm_seek
on the string port (assuming a recent version of Guile and that you
don't run into some bug or other).

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