From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110701 invoked by alias); 10 Mar 2017 05:51:40 -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 110672 invoked by uid 89); 10 Mar 2017 05:51:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:708 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 ESMTP; Fri, 10 Mar 2017 05:51:33 +0000 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cmDSc-0005GL-UM; Fri, 10 Mar 2017 06:51:31 +0100 Received: from 70-36-239-163.dsl.dynamic.fusionbroadband.com ([70.36.239.163] helo=localhost.localdomain) by mailfront10.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1cmDSc-0005su-La; Fri, 10 Mar 2017 06:51:30 +0100 Subject: Re: read in script vs compiled To: Peter Lane , kawa@sourceware.org References: <37bfb557-9645-4ae3-7e3c-7c217b664d38@peterlane.info> From: Per Bothner Message-ID: Date: Fri, 10 Mar 2017 05:51:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00065.txt.bz2 On 03/09/2017 03:47 PM, Per Bothner wrote: >> I am trying to get some user input from the terminal in a script, but I receive Null pointer errors with Kawa. This should work now (in the master branch). > What needs to happen is that the JLineInPort.parse methods needs to > know if we're reading forms (expressions) or "data". That shouldn't > be very hard, but it is probably a bit "fiddly" figuring out the > right way to do it. I think I found a fairly clean and simple way to distinguish reading "data" from the terminal vs reading "code" as part of the REPL. And you can use the JLine input editor for either. -- --Per Bothner per@bothner.com http://per.bothner.com/