This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: How should I write a program?
- To: Juli-Manel Merino Vidal <jmmv84 at yahoo dot com>
- Subject: Re: How should I write a program?
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 24 Jul 2000 01:10:26 +0200
- Cc: guile at sourceware dot cygnus dot com
- References: <20000723214847.18930.qmail@web2105.mail.yahoo.com>
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.