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]

Re: How should I write a program?


Juli-Manel Merino Vidal <jmmv84@yahoo.com> writes:

> Well, I have think in making the command interpreter convert the
> entered line into a scheme line and then pass it to the current
> interpreter with the proper gh_ function. Then the scheme
> interpreter has to run the gdc_open function which is written in C
> with it's proper arguments.

Sounds good!

As a variant, you might consider writing your command interpreter in
Scheme and then pass the created Scheme form to `eval'.  I think it
would be easy to provide hooks into the normal Guile
read-eval-print-loop so that you can get all features of it but with a
different syntax.

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