From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: piper schemigan Date: Wed, 24 Nov 2010 21:18:17 +0100 Message-ID: <87sjyq8ohi.fsf@delenn.lan> References: <201010212223.23822.stefan.itampe@gmail.com> <201011241900.50947.stefan.itampe@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290629945 13582 80.91.229.12 (24 Nov 2010 20:19:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 20:19:05 +0000 (UTC) Cc: guile-devel@gnu.org To: Stefan Israelsson Tampe Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Nov 24 21:18:58 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLLnl-0004zS-N7 for guile-devel@m.gmane.org; Wed, 24 Nov 2010 21:18:58 +0100 Original-Received: from localhost ([127.0.0.1]:44944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLLnl-00030n-2K for guile-devel@m.gmane.org; Wed, 24 Nov 2010 15:18:49 -0500 Original-Received: from [140.186.70.92] (port=46118 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLLnO-0002tL-UG for guile-devel@gnu.org; Wed, 24 Nov 2010 15:18:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLLnN-0001F7-LX for guile-devel@gnu.org; Wed, 24 Nov 2010 15:18:26 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:49503 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PLLnN-0001F1-9l for guile-devel@gnu.org; Wed, 24 Nov 2010 15:18:25 -0500 Original-Received: (qmail invoked by alias); 24 Nov 2010 20:18:23 -0000 Original-Received: from 83-215-154-5.hage.dyn.salzburg-online.at (EHLO nathot.lan) [83.215.154.5] by mail.gmx.net (mp002) with SMTP; 24 Nov 2010 21:18:23 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX1+41SdseoW4GarycjNKCUQZ0tuzj2TAxbkCl6UxPb QrmqiLoKPmWRLP Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 66F1B3A695; Wed, 24 Nov 2010 21:18:21 +0100 (CET) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kiTu8g4xytrW; Wed, 24 Nov 2010 21:18:17 +0100 (CET) Original-Received: from delenn.lan (delenn.lan [192.168.3.11]) by nathot.lan (Postfix) with ESMTP id 8C33F3A693; Wed, 24 Nov 2010 21:18:17 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id 3E9042C05D7; Wed, 24 Nov 2010 21:18:17 +0100 (CET) In-Reply-To: <201011241900.50947.stefan.itampe@gmail.com> (Stefan Israelsson Tampe's message of "Wed, 24 Nov 2010 19:00:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11196 Archived-At: Stefan Israelsson Tampe writes: > Hi, > > I'm very used to take the standart output and pipe it to grep and friends. > So I searched for this feature and I think scsh is the correct way to make > this happen. But it have been bitrotted. > > So I've hacked the sorces to. > > Use guile syntax-define and cut out defmacro and friends > Yay for getting rid of defmacro! > Use guile modules whenever possible keeping the interface as > intact as possible, e.g use, > > (ice-9 optargs) > (ice-9 regexp) > (srfi srfi-9) > (srfi srfi-9 gnu) > > In stead of the scsh bag of software for these cases. > > There are a few issues that I found > 1. the macro run uses unquote out of a visble backquote and guile > barfs > Please provide a more detailed explanation -- what exactly did you try and what was the exact error did message you did get? It is indeed possible to write macros that behave as its input was implicitly backquoted, e.g.: (define-syntax run (syntax-rules () ((_ command args ...) (begin (display (cons `command `(args ...))) (newline))))) scheme@(guile-user)> (run "echo" ,(+ 1 2)) (echo 3) > 2. I was not able to use the | symbol. > I just checked, and on both Guile HEAD (from recent git) and Guile 1.8.7, `|' is a valid symbol, although it is not valid according to R5RS and R6RS. What difficulties are you experiencing exactly? Regards, Rotty -- Andreas Rottmann --