From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 89556BC28 for ; Sat, 6 Nov 2004 01:54:34 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA60sX4r021154 for ; Sat, 6 Nov 2004 01:54:34 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA19498 for ; Sat, 6 Nov 2004 01:54:33 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA60sVAD021150 for ; Sat, 6 Nov 2004 01:54:32 +0100 Received: from [192.168.1.200] (ppp217-99.lns1.syd3.internode.on.net [203.122.217.99]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id iA60sE4Y052484; Sat, 6 Nov 2004 11:24:15 +1030 (CST) Subject: Scheme added to Felix compiler From: skaller Reply-To: skaller@users.sourceforge.net To: felix-language Cc: caml-list , will@exomi.com Content-Type: text/plain Message-Id: <1099702453.2496.101.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 06 Nov 2004 11:54:14 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 418C20CA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 418C20C7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; compiler:01 sourceforge:01 tarball:01 tgz:01 compiler:01 schemers:01 main':01 ocaml:01 glebe:01 ffau:98 sch:98 061:98 writes:01 nsw:01 invert:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: I have just uploaded a revised tarball for Felix 1.0.18. Felix is open source with BSD style FFAU licence. http://felix.sf.net/downlooad/flx_1.0.18_src.tgz This version now incorporates the Scheme interpreter ocs-1.0 in the compiler. Ocs was written by Ville-Pertti Keinonen and the original source can be obtained from URL http://will.iki.fi/software/ocs/ A scheme reference can be found at http://www.schemers.org/Documents/Standards/R5RS/HTML/ The interpreter is available standalone tool (called 'ocs_main' at the moment, but the name will probably change) It can also be used with the Felix preprocessor. #scheme (display "//generated by scheme\n") #scheme (load "somefile.sch") The environment is currently shared across directives and include files so variables set in one place can be used in subsequent places. The #scheme directive is replaced by whatever it writes to standard output, and is then tokenised as if it were Felix code. In future releases I may add system variables and utilities to the environment, and perhaps extend the interpreter so it can access some of the compiler state. I will be examining whether it is feasible to invert the control relation of the front end so it's a scheme program embedding Ocaml (rather than the other way arond). This may help to make user control and extensions easier to script. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net