Hello,
I am trying to write a (simple) function to convert s-expressions to XML.
I've come up with following function, which (somehow) works:
(use-modules (ice-9 rdelim))
(use-modules (ice-9 pretty-print))
(define atom?
(lambda (x)
(and (not (pair? x)) (not (null? x)
(
On Mon, Mar 22, 2010 at 09:36:16PM +0100, Andy Wingo wrote:
> Hi Josef,
>
> On Mon 22 Mar 2010 20:50, Josef Wolf writes:
>
> >> http://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=doc/ref/api-macros.texi;h=51f54ed070af453a138282f61e7cd8dbbddc53a3;hb=HEAD
> >
>
On Sat, Mar 20, 2010 at 03:13:45PM +0100, szgyg wrote:
> Josef Wolf wrote:
> >I am trying to understand the defstruct macro from the "teach yourself
> >scheme in fixnum days" tutorial, which can be found in chapter 9 at
> >http://www.ccs.neu.edu/home/dorai/t-
On Mon, Mar 22, 2010 at 09:16:34PM +0100, Andy Wingo wrote:
> Hi Josef,
>
> I seem to be the negative guy in replies to you.
Uh? I did not notice anything negative?
> Apologies for that!
I don't see any reason for you to apologize...
> On Mon 22 Mar 2010 20:25, Josef Wol
On Fri, Mar 19, 2010 at 03:28:39PM +0100, Andy Wingo wrote:
> Hi,
>
> On Fri 19 Mar 2010 09:57, Josef Wolf writes:
>
> > (show-expansion (defstruct tree height girth age leaf-shape leaf-color))
>
> (macroexpand '(defstruct ...))
>
> You might want
On Fri, Mar 19, 2010 at 05:15:57PM +0100, Andreas Rottmann wrote:
> defmacros are bound to bite you in the proverbial ass real hard when you
> combine them with modules, so it's best to avoid them like the
> plague. At least that's my experience, FWIW.
Thanks for the warning. I'd like to understan
On Fri, Mar 19, 2010 at 08:54:02AM -0400, Ken Raeburn wrote:
> On Mar 19, 2010, at 04:57, Josef Wolf wrote:
> > My next question is more related to the defstruct macro.
> > In line 11, defstruct stores the default initializers into the vv vector:
> >
> > (if (p
Hello,
I am trying to understand the defstruct macro from the "teach yourself
scheme in fixnum days" tutorial, which can be found in chapter 9 at
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-11.html#node_chap_9
My first question is of a more generic type. For a better understanding
On Sun, Nov 15, 2009 at 07:16:10PM +0100, Andy Wingo wrote:
> On Sun 15 Nov 2009 17:19, Josef Wolf writes:
> > I would like to try some GUI stuff with guile. Since I have some experience
> > with Tk (with perl and ruby), I tried Tk following
> > http://www.galassi.
On Sun, Nov 15, 2009 at 07:18:33PM +0100, Andy Wingo wrote:
> On Sun 15 Nov 2009 17:33, Josef Wolf writes:
> > I am trying to work through the little schemer book. In order to make it
> > easier to go through the examples, I've come up with the following macro:
> > [
On Sun, Nov 15, 2009 at 08:26:58PM +, Neil Jerram wrote:
> Josef Wolf writes:
> > I am trying to work through the little schemer book. In order to make it
> > easier to go through the examples, I've come up with the following macro:
> > [ ... ]
>
> The body
Hello,
I am trying to work through the little schemer book. In order to make it
easier to go through the examples, I've come up with the following macro:
;;; Helper to visualize
(define-macro (disp exp)
(display exp) (newline)
`(display ,exp)
; (newline) (newline)
)
This wor
Hello,
I would like to try some GUI stuff with guile. Since I have some experience
with Tk (with perl and ruby), I tried Tk following
http://www.galassi.org/mark/mydocs/guile-programmer_2.html:
(require 'Gwish)
(use-library tcl)
(use-interface tcl)
(use-interface tclhack)
(tk-main-loop)
On Tue, Oct 23, 2007 at 01:41:57PM +0100, Neil Jerram wrote:
> Josef Wolf <[EMAIL PROTECTED]> writes:
> > I followed the suggestion from the info pages and put following into my
> > ~/.guile file:
>
> Which info pages were those? The info for 1.6.7 does not mention
&g
Hello,
I followed the suggestion from the info pages and put following into my
~/.guile file:
(use-modules (ice-9 debugger breakpoints))
(use-modules (ice-9 debugger breakpoints source))
(use-modules (ice-9 debugger breakpoints procedural))
(use-modules (ice-9 readline))
(activate-readl
On Wed, Oct 10, 2007 at 06:21:25PM +0200, Ludovic Courtès wrote:
> Josef Wolf <[EMAIL PROTECTED]> writes:
> > In guile's info page, all I can find is chapter 22.5, but this seems
> > to describe something much more general than what defstruct would do.
> `defstruct
Hello,
I am about to learn scheme by working through some tutorials. My first
attempt is http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html,
which is suggested from the schemers.org pages.
Now I would like to use structures as described in
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t
17 matches
Mail list logo