From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.user Subject: Re: How to add Guile support to a package Date: Tue, 6 Jan 2015 21:16:04 +0100 Message-ID: References: <87ioglm9z8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420575428 31524 80.91.229.3 (6 Jan 2015 20:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2015 20:17:08 +0000 (UTC) Cc: =?utf-8?Q?Ludovic_Court=C3=A8s?= , Guile User To: Antonio Ceballos Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 06 21:17:02 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y8aYG-0006C2-7L for guile-user@m.gmane.org; Tue, 06 Jan 2015 21:16:28 +0100 Original-Received: from localhost ([::1]:38099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8aYF-0006Es-Al for guile-user@m.gmane.org; Tue, 06 Jan 2015 15:16:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8aY3-0006EJ-To for guile-user@gnu.org; Tue, 06 Jan 2015 15:16:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8aY2-0001kM-Kr for guile-user@gnu.org; Tue, 06 Jan 2015 15:16:15 -0500 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:34677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8aXw-0001jb-T0; Tue, 06 Jan 2015 15:16:09 -0500 Original-Received: from [10.0.1.3] (217.208.169.99) by smtp-out21.han.skanova.net (8.5.142.07) (authenticated as u26619196) id 547534BD01244FF6; Tue, 6 Jan 2015 21:16:07 +0100 In-Reply-To: X-Mailer: Apple Mail (2.2064) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 195.67.226.208 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11710 Archived-At: > On 5 Jan 2015, at 18:34, Antonio Ceballos 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. >=20 > 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. >=20 > 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=3De195dec2-1c1a-42a= 1-851e-da47e674d91b