[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add Guile support to a package
From: |
Hans Aberg |
Subject: |
Re: How to add Guile support to a package |
Date: |
Tue, 6 Jan 2015 21:16:04 +0100 |
> On 5 Jan 2015, at 18:34, Antonio Ceballos <address@hidden> wrote:
> This is only a rough plan, but one of the things that I have in mind is
> to allow users provide their own evaluation function as an Scheme
> expression. That would be possible when GNU Chess is run in a
> especial new mode whereby the Guile evaluation function would replace
> the built-in evaluation function.
>
> For that purpose, I think that I need both to embed Guile into Chess,
> and to export some primitives that could be used as building blocks
> for the Scheme evaluation function.
>
> Does it make sense?
I couple a years ago, I wrote a Guile C++ wrap with a small Flex/Bison parser,
with infix syntax, which perhaps can be an input. I have updated it, so it
compiles using Clang in C++11 mode. One can type an infix expression and see
what Scheme code it translates to, and also evaluate it.
1.
https://secure2.storegate.com/Shares/Home.aspx?ShareID=e195dec2-1c1a-42a1-851e-da47e674d91b