From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103612 invoked by alias); 24 Sep 2015 19:20:19 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 103559 invoked by uid 89); 24 Sep 2015 19:20:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 24 Sep 2015 19:20:15 +0000 Received: from [10.9.9.206] (helo=mailfront02.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1ZfC3v-0000cN-4h; Thu, 24 Sep 2015 21:20:11 +0200 Received: from 70-36-239-58.dsl.dynamic.fusionbroadband.com ([70.36.239.58] helo=toshie.bothner.com) by mailfront02.runbox.com with esmtpsa (uid:757155 ) (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) id 1ZfC3a-0001Ul-PB; Thu, 24 Sep 2015 21:19:51 +0200 Subject: Re: Approach to add a new language To: =?UTF-8?Q?Germ=c3=a1n_Arias?= , Kawa References: <1443119328.2480.4.camel@german-HP-245-G2-Notebook-PC> From: Per Bothner Message-ID: <56044CD1.2050802@bothner.com> Date: Thu, 24 Sep 2015 19:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1443119328.2480.4.camel@german-HP-245-G2-Notebook-PC> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-q3/txt/msg00082.txt.bz2 On 09/24/2015 11:28 AM, Germán Arias wrote: > Hi all, I'm new at Kawa, although I have some experience in scheme, but > not in java. I read that Kawa can be used to implement other programming > languages in java platform. So I would like hear your suggestions to do > this. I'm thinking on implement Objective-C, but I don't know how this > works. Parse the objective-C files to generate the corresponding Sheme > files is enough? Or is necessary other considerations? Thanks in advance > for your help. Objective-C might be a challenge on the JVM, partly because C is a challenge on the JVM. Plus you have to define a mapping from the Objective-C class/object model to the Java model. Perhaps you could implement a subset of Objective-C - but why? I wouldn't use Scheme as an intermediate language (though one could). One problem is that makes it hard to get line number information correct. Better (and faster) to parse Objective-C and generate the Expression objects that Kawa uses. -- --Per Bothner per@bothner.com http://per.bothner.com/