From: Lynn Winebarger <owinebar@indiana.edu>
Subject: Re: What is Guile?
Date: Mon, 08 Sep 2003 22:25:31 -0500 [thread overview]
Message-ID: <3F5D482B.4040808@indiana.edu> (raw)
In-Reply-To: 20030909003319.GC4490@strike.parodycheck.net
Jeff Read wrote:
> On Mon, Sep 08, 2003 at 02:39:12PM -0700, Jonathan Bartlett wrote:
>
>>The idea comes from Scheme itself - it doesn't really have a syntax. It's
>>just a raw parse tree with some primitives. Using a combination of
>>function definitions, macro definitions, etc., you can easily modify
>>scheme to work like any system you want. Then you just need a parser to
>>convert the raw code into a parse tree, and have your scheme interpretter
>>run your parse tree.
Don't forget the run-time typing of values. Or the arbitrary precision
arithmetic, for that matter.
>>Basically, what you would need is the following:
>>
>> a) a flag in Guile so that you could specify which parser / language
>>module to use
>>
>> b) the ability to create both macros and definitions within a closed
>>environment which can be applied to a list (i.e. parse tree - I believe
>>this is already there)
>>
>> c) an interface definition for parsers and language providers.
>
>
> Don't forget d) parsers and language modules for various languages. :)
> They probably have to be written in Scheme, and it seems that there are few
> people willing to do one, or at least, willing to stick to it long enough
> so that it's a recognizable form of the target language.
I'm working on a parser generator to go with the regexp compiler I
put up on guile-sources last week*. Once guile comes with such tools (not
necessarily mine), perhaps there will be a greater inclination to work on
translators. I think that's always been the theory.
> Making Guile compile to, say, the Parrot VM before execution and then writing
> compilers that do X-language->Scheme->Parrot, might be an interesting way to go.
> Nevertheless, there are numerous marketing hurdles to overcome, the public's taste
> aversion to Scheme being just one of them.
What public is that? As far as I know, most of the public has an aversion to programming,
period. I don't think the target is to translate Perl, so much as the kinds of programming
languages (limited in power) that are embedded for use by this hulking majority of users.
There are also FFI applications.
Lynn
* I can now build predictive, SLR(1), and LR(1) parse tables. I still have to do LALR(1) and
provide operator precedence relations to support Yacc style grammars.
I am, of course, completely ignoring errors in grammars, so there's plenty of work left to
be done for an end-user type of product.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2003-09-09 3:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3EF2F7DF008213D5@pop3.es.tisadm.net>
2003-09-02 16:47 ` What is Guile? Tom Lord
2003-09-03 20:43 ` Han-Wen Nienhuys
2003-09-03 22:52 ` Tom Lord
2003-09-03 23:12 ` Han-Wen Nienhuys
2003-09-04 9:43 ` tomas
2003-10-07 17:11 ` Marius Vollmer
[not found] ` <3EF2E935008FB586@pop2.es.tisadm.net>
2003-09-07 22:22 ` Marius Vollmer
2003-09-02 18:08 ` What is Guile?y Thamer Al-Harbash
2003-09-03 16:34 ` Han-Wen Nienhuys
2003-09-02 21:03 ` What is Guile? Jonathan Bartlett
2003-09-02 21:59 ` Kevin Ryde
[not found] ` <3EF2F7DF008E4D8D@pop3.es.tisadm.net>
2003-09-07 12:38 ` Jeff Read
2003-09-08 17:14 ` Paul Jarc
2003-09-08 18:32 ` Thamer Al-Harbash
2003-09-08 21:39 ` Jonathan Bartlett
2003-09-09 0:33 ` Jeff Read
2003-09-09 2:43 ` Jonathan Bartlett
2003-09-09 3:25 ` Lynn Winebarger [this message]
2003-09-09 13:20 ` Dale P. Smith
2003-09-09 18:46 ` Andreas Rottmann
2003-09-10 11:55 ` Thamer Al-Harbash
2003-09-07 22:00 ` Marius Vollmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F5D482B.4040808@indiana.edu \
--to=owinebar@indiana.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).