From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: more on nyacc extension languages Date: Sat, 1 Sep 2018 12:38:02 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1535830592 5956 195.159.176.226 (1 Sep 2018 19:36:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2018 19:36:32 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 01 21:36:28 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwBh4-0001Rs-NW for guile-user@m.gmane.org; Sat, 01 Sep 2018 21:36:26 +0200 Original-Received: from localhost ([::1]:38254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwBjA-0005QH-H5 for guile-user@m.gmane.org; Sat, 01 Sep 2018 15:38:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwBin-0005Q0-R0 for guile-user@gnu.org; Sat, 01 Sep 2018 15:38:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwBik-0006RI-2X for guile-user@gnu.org; Sat, 01 Sep 2018 15:38:13 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:36474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwBij-0006Ph-5C for guile-user@gnu.org; Sat, 01 Sep 2018 15:38:09 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id b11-v6so6983891pfo.3 for ; Sat, 01 Sep 2018 12:38:05 -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=2Y8mn2a8Ug8pwGG9agL1oJMn3d2BZwJSCfJ1ldgR/tw=; b=pf0uh543CdbTPtpvSlU//EqAvx1xj+l5t9ojlfvMi0ocnREr/5bkxcwpZ2B3+IqesO /nuu4xzEAyJDV0wJbB0yhgf6nddnuVt5mGBQOS+c2/+d/Xa6qGZTKBQUiMcNO2BhIVJ1 Vulwh954Xxd+xxvC/vxboqyeVphy3qUzS73LmZQKsj7Hci/O5bWB0S46WCN7B1xzX/H5 XyMO/yv02DcPiGW/URADUQ3kMHemd0H7uSvH2hrF/kFYlXbqmKX5KkkHdY29hI8Dpoed gHnYb+O2GoVoHxrlFV0LTzqOrK+7aiucJmbDRf4qERd47Jt06iuDzIJhsYM7lfnoCD/o Moxg== 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=2Y8mn2a8Ug8pwGG9agL1oJMn3d2BZwJSCfJ1ldgR/tw=; b=PJpWNqrT04hNGW5/IOmvekd6153JwZv228AgYFq+cUaTJd8uANyPG34ryBaiL6cArw 7LiAdXLyFP0dOFjDDmDcv5n1G+paRrhGIBE3p2OPbjS2rPgncRKpvl6KzI+Y4TZ6R4+w nSe3xOiEQs3deOUD502fWtR5J1b6F4SV5QgIFUfmhUHMLdTmIzvxHIte+exT+z+WF3fa zCTLmY9wPMyf2R2nK2VRAEVA9sfplgZJGhOM+OkLGC6uy503ao4deuQ+iTSXzFd2hkVJ u+WeGlxcTDev7fv6sSCwjhXwpP0+Cmd38Y1kwDWCXbKjIqClpl3fTuZSNpsbI+BupXRN jAhQ== X-Gm-Message-State: APzg51C7oZFmfpCRyPv6Bz6NYkqa8VJcHS+9+3bKHrsRio8161iR0Slf S9/qe5vJMLP2I5q6dbWaXM2tNHE7 X-Google-Smtp-Source: ANB0VdYUWCdtRUaEIH3rYrZXFFjNilARNaVxyJbXRHkuD2TXzLyX+KrkCxsxa8bfyAnFVPsHaUW8cg== X-Received: by 2002:a63:4606:: with SMTP id t6-v6mr19456450pga.271.1535830684210; Sat, 01 Sep 2018 12:38:04 -0700 (PDT) Original-Received: from [192.168.2.183] (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id 16-v6sm23520517pfo.164.2018.09.01.12.38.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Sep 2018 12:38:03 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:14844 Archived-At: Working on nx-tcl now. I am working to extract common utilities for generating language extensions based on the three I have now: nx-tcl, nx-octave (was nx-matlab) and nx-javascript. scheme@(guile-user)> ,L nx-tcl Happy hacking with nx-tcl! To switch back, type `,L scheme'. nx-tcl@(guile-user)> proc foo {a {b 1} args} { set c 1; return [expr $a+$b+$c] } nx-tcl@(guile-user)> ,L scheme Happy hacking with Scheme! To switch back, type `,L nx-tcl'. scheme@(guile-user)> (foo "5" "6") $1 = 12 scheme@(guile-user)> (foo 5 6) $2 = 12 scheme@(guile-user)> (foo 5) $3 = 7 Making nx-tcl compatible with other languages is still something I'm thinking about. In Tcl all values are strings, but some items are intended to be non- strings. So the implementation needs to deal with converting to strings. I am trying to be lazy about that and see where it turns out. Matt