This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
CTAX revisited
- To: guile at sourceware dot cygnus dot com
- Subject: CTAX revisited
- From: Ian Bicking <ianb at colorstudy dot com>
- Date: Sun, 23 Jul 2000 13:13:20 -0500
Okay, well not quite CTAX. But, in an effort to revitalize (or maybe
just vitalize) translation, I'm writing a translator from a C-like
syntax to Scheme (no semantic translation at all). tcl->scheme is a
bit large and burdened with all sorts of complicated issues, and right
now I'd like to deal with the fundamental issues of getting
translators integrated into Guile -- how to load code destined for
translations, how to package a translation, etc. So, a C-like (or
maybe more JavaScript-like) syntax would be useful, but also simple
enough that the translation itself shouldn't be distracting.
I'm almost finished with the translator. There's one semantic issue
that I need some help with: return, break, and continue.
call-with-current-continuation can, of course, implement these. But
call/cc is really heavy if every loop and function would have to be
wrapped in one. So, if there's any way to avoid this I'd really like
to. return is a very common construct, so most language translations
will face this issue.
Ideas or advice on this issue would be most appreciated.
-- Ian