[Ecls-list] Simple Hello word! function

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Jul 4 17:32:38 UTC 2010


On Sun, Jul 4, 2010 at 6:56 PM, Pascal J. Bourguignon <pjb at informatimago.com
> wrote:

> But then you would break reader macros:
>   "(install-my-macro-char) {do something funny}"
> ;-)
>

Wow, I did not think about that. The other option, which is not that bad, is
to create a REPL for that string.

cl_object string, stream, object, end;

string = make_simple_base_string(".....");
stream = cl_make_string_input_stream(1,string);
eof = string; /* Marker for EOF */
do {
  object = cl_read(3, stream, Cnil, eof);
  if (object == eof)
    break;
  ...
 si_eval...(object);
} while (1);


-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100704/bb7ffab7/attachment.html>


More information about the ecl-devel mailing list