From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Multi-language scripts Date: Fri, 21 Aug 2020 11:36:28 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11209"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Aug 21 20:36:52 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9BuF-0002oX-5F for guile-user@m.gmane-mx.org; Fri, 21 Aug 2020 20:36:51 +0200 Original-Received: from localhost ([::1]:53540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9BuE-0007hL-7a for guile-user@m.gmane-mx.org; Fri, 21 Aug 2020 14:36:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Bu2-0007hB-8k for guile-user@gnu.org; Fri, 21 Aug 2020 14:36:38 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:37384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9Btw-0001nu-Ol for guile-user@gnu.org; Fri, 21 Aug 2020 14:36:37 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id s14so1272103plp.4 for ; Fri, 21 Aug 2020 11:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Uv7XOBwrw8b7hMKTCwjlT4ZOSb7uPu9ktEuaYaLPu2w=; b=fZ/e9XVjwgYo3QafJmwYSLqCpDLi/2gknP2ZEeb9ldYvzha5+Gsc1emgQ9wcttAL0M o8ONIs4pal8HZxMtN9EdQWpSTfRYy7RaOjVt93SNsLdAG3EGTsY6x3crCOBLyYP1BprX Hv4amZRdVl0/RvKGc0HOoIr6siiyr8j2gOKor7r+6sDfDcdo0BCxeDX9DmYKaJq3EyOy g3VLLYqQRCEl7zte6Za7SIVwZ+L74ACD51mzlnoL2xUXgUcrCunJb1SaNYdBRGj7gPAk xvpZ29x/0UnYg9e0pn3nvsXB6CclohzpQteHVirQjNYn5i76Clg2Gr/MVl+kAOgQDCrY WD3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Uv7XOBwrw8b7hMKTCwjlT4ZOSb7uPu9ktEuaYaLPu2w=; b=kgpmyiwmPQpLDfatDJhqLnJfbypWhAKCHmu1F8FV7MMBtpPBd3YSC3aZzvEpDmUaIf ygOPkPxFHQBX36ocSFbPUMdBYAXlXGyZUWHeeF/U0CqxPJSE7mO7Fstu323sYVKo09qx vM59HDxBVUcIfloalL284hzvLXRVAswxSfj+5g1hwK4UBtRuhdEFjCC/L4QeppJjOuaC QlDa+nmaG2oHREnAPlj5T9qGTuerx08h/GVfubiAtdasSbjN/BkZolyYuYuZGGGZDRrP D1Noyo/G5iRtSCUzrxFe4jNfEJIcQjbZ5cgHyFeDQJCNlSwz9HpXJsm1iGl24YS7vt7x Rn8g== X-Gm-Message-State: AOAM532CMvhgKf3i3y6j4XahJE51J+D9tNOohMjLV3QXt6E4d2sXW4O1 A0XHfCJZ2eDwXTFb7ynB8dmYKRttOkA= X-Google-Smtp-Source: ABdhPJzo0ew3OzJiiEmsJ+hQ0N0gYx5vHItAXdGFCfWWDTUzXcg6pKZ3T1SZaDQRK0Ec8aLkYCgc9g== X-Received: by 2002:a17:90a:dac5:: with SMTP id g5mr3364819pjx.5.1598034990450; Fri, 21 Aug 2020 11:36:30 -0700 (PDT) Original-Received: from [192.168.2.183] (64-52-176-132.championbroadband.com. [64.52.176.132]) by smtp.gmail.com with ESMTPSA id s8sm2753825pgp.36.2020.08.21.11.36.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 11:36:29 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=matt.wette@gmail.com; helo=mail-pl1-x633.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16821 Archived-At: On 8/21/20 11:22 AM, Stephen Scheck wrote: > I'm trying to invoke `guile -s script` where script contains something like > this: > > ,language ecmascript > display("Hello JavaScript!\n"); > ,language scheme > (display "Hello Guile!\n") > > However, REPL meta-commands do not seem to be available when passing a > script file to Guile with the -s switch. > > Does anybody know if there's any way to make it work? Did you try `guile --language=emacscript'? mwette$ cat zz.js display("hello\n"); mwette$ guile --language=ecmascript zz.js hello