[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: piper schemigan

From: Andreas Rottmann
Subject: Re: piper schemigan
Date: Wed, 24 Nov 2010 21:18:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Israelsson Tampe <address@hidden> 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 ...)
       (display (cons `command `(args ...)))

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 -- <>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]