[gambit-list] compiling javascript syntax to scheme

Mario Domenech Goulart mario.goulart at gmail.com
Mon Mar 22 16:38:45 EDT 2010


Hi James

On Mon, 22 Mar 2010 16:30:56 -0400 James Long <longster at gmail.com> wrote:

> I'm thinking about a product I want to develop in the future, and I think a
> crucial point will be to convince non-Scheme developers to use it, and possibly
> convert them to Scheme programmers.  I want to include a "scripting" language
> in my product which has the syntax of Javascript.  I want to compile this
> language to Scheme.
>
> This is exactly what SIX does in Gambit, but SIX doesn't quite have the grammar
> I want and is incomplete (I think "return" does nothing?).
>
> Is anyone else interested in working on this?  I need to look at the SIX
> compiler in Gambit.  I could either extend it, or write a parser from scratch
> using something like SILex. I love the idea of SIX (including a built-in infix
> grammar), but is it used anywhere?  Is anyone interested in improving SIX to
> make it more usable as an actual language?

Not directly related, but an alternative approach would be something
like http://chicken.wiki.br/eggref/3/lua (i.e., embedding an
implementation of a non-parenthesis-oriented-syntax language into your
application and binding it to Gambit).

Best wishes.
Mario



More information about the Gambit-list mailing list