[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 ...)
(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 -- <http://rotty.yi.org/>
- Re: The progress of hacking guile and prolog, (continued)
- Re: The progress of hacking guile and prolog, Ludovic Courtès, 2010/11/11
- Typechecking I, Stefan Israelsson Tampe, 2010/11/15
- Re: The progress of hacking guile and prolog, Andy Wingo, 2010/11/20
- Re: The progress of hacking guile and prolog, Noah Lavine, 2010/11/23
- Re: The progress of hacking guile and prolog, Stefan Israelsson Tampe, 2010/11/24
- piper schemigan, Stefan Israelsson Tampe, 2010/11/24
- Re: piper schemigan,
Andreas Rottmann <=
- Re: piper schemigan, Ludovic Courtès, 2010/11/25
- Re: piper schemigan, Stefan Israelsson Tampe, 2010/11/26
- Guile-SCSH, Ludovic Courtès, 2010/11/28
- Re: Guile-SCSH, Stefan Israelsson Tampe, 2010/11/28
- Re: Guile-SCSH, Jose A. Ortega Ruiz, 2010/11/28
- Re: Guile-SCSH, Stefan Israelsson Tampe, 2010/11/29
- http://gitorious.org/guile-scsh/guile-scsh, Stefan Israelsson Tampe, 2010/11/29
- Guile-Facade, Ludovic Courtès, 2010/11/30
- Re: The progress of hacking guile and prolog, Ludovic Courtès, 2010/11/25
- Re: The progress of hacking guile and prolog, Noah Lavine, 2010/11/26