unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: rackets syntax parse
Date: Wed, 8 Feb 2012 22:50:15 +0100	[thread overview]
Message-ID: <CAGua6m32hihM9OU-amHFLz60Q+KyijjEdWY-RUUcxau2nBNq6g@mail.gmail.com> (raw)
In-Reply-To: <CAGua6m0ruJAUtNBK6y2aY9oO=Q42LtyVmta5pK=GQAXT4Jm6Og@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3464 bytes --]

Hmm,

The problems on master is not due to beeing a list a I thought. Is there
anything wrong with

(syntax-case x (integrate)
                          [(integrate predicate description)
                           (pk 'matched)
                           #'(make-integrate #'predicate
                                             'description)]
                          [#f
                           #''#f])])

x =
(#(syntax-object integrate ((m-7SKZ$evMo3A5a3cVUSaE3A-12230 top) #(ribcage
() () ()) #(ribcage #(l) #((m-7SKZ$evMo3A5a3cVUSaE3A-12230 top))
#("l-7SKZ$evMo3A5a3cVUSaE3A-12240")) #(ribcage (integrate-description
integrate-predicate integrate? make-integrate integrate integrate-fkns)
((top) (top) (top) (top) (top) (top)) (((hygiene syntax parse src rep-data)
. #(syntax-object integrate-description ((top)) (hygiene syntax parse src
rep-data))) ((hygiene syntax parse src rep-data) . #(syntax-object
integrate-predicate ((top)) (hygiene syntax parse src rep-data))) ((hygiene
syntax parse src rep-data) . #(syntax-object integrate? ((top)) (hygiene
syntax parse src rep-data))) ((hygiene syntax parse src rep-data) .
#(syntax-object make-integrate ((top)) (hygiene syntax parse src
rep-data))) ((hygiene syntax parse src rep-data) . #(syntax-object
integrate ((top)) (hygiene syntax parse src rep-data))) ((hygiene syntax
parse src rep-data) . #(syntax-object integrate-fkns ((top)) (hygiene
syntax parse src rep-data))))) shift #(ribcage () () ()) #(ribcage #(q mk ?
fn n i) #((top) (top) (top) (top) (top) (top))
#("l-7SKZ$evMo3A5a3cVUSaE3A-1112" "l-7SKZ$evMo3A5a3cVUSaE3A-1113"
"l-7SKZ$evMo3A5a3cVUSaE3A-1114" "l-7SKZ$evMo3A5a3cVUSaE3A-1115"
"l-7SKZ$evMo3A5a3cVUSaE3A-1116" "l-7SKZ$evMo3A5a3cVUSaE3A-1117")) #(ribcage
() () ()) #(ribcage () () ()) #(ribcage #(nm) #((top))
#("l-7SKZ$evMo3A5a3cVUSaE3A-1107")) #(ribcage #(name field) #((top) (top))
#("l-7SKZ$evMo3A5a3cVUSaE3A-1103" "l-7SKZ$evMo3A5a3cVUSaE3A-1104"))
#(ribcage () () ()) #(ribcage #(x) #((top))
#("l-7SKZ$evMo3A5a3cVUSaE3A-1100")) #(ribcage (define-struct) ((top))
(((hygiene syntax parse src misc) . #(syntax-object define-struct ((top))
(hygiene syntax parse src misc)))))) (hygiene syntax parse src misc))
#(syntax-object t-1375 ((top)) (hygiene syntax parse src lib))
#(syntax-object "identifier" ((#f top) shift #(ribcage () () ())) (hygiene
syntax parse src lib)))

x do have the simple structure of
((syntax integrate) (syntax t-1375) (syntax "identifier"))

Something in the syntax structure has to be corrupt!

On Wed, Feb 8, 2012 at 9:16 PM, Stefan Israelsson Tampe <
stefan.itampe@gmail.com> wrote:

> I tried, got, new errors. it looks like if we have
> (syntax-case x () ((a b c) ...))
>
> and if x is a list of syntax pattern then we do not match in master
> but do match in stable-2.0
>
> /stefan
>
> ;;; WARNING: compilation of
> /home/stis/stis/src/guile-syntax-parse/syntax/parse/src/parse.scm failed:
> ;;; ERROR: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow"
> ())'
>
> This codee compiles under
>
>
> On Tue, Feb 7, 2012 at 11:55 PM, Andy Wingo <wingo@pobox.com> wrote:
>
>> On Tue 07 Feb 2012 22:58, Stefan Israelsson Tampe <
>> stefan.itampe@gmail.com> writes:
>>
>> >     Just use #'f instead of (datum->syntax #'name 'f).
>> >
>> > I would love to use this, but when I tried that, the code failed in
>> > some cases, maybe because of the bugs you mensioned?
>>
>> Try on master, perhaps?
>>
>> Andy
>> --
>> http://wingolog.org/
>>
>
>

[-- Attachment #2: Type: text/html, Size: 4452 bytes --]

      reply	other threads:[~2012-02-08 21:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-22 22:38 rackets syntax parse Stefan Israelsson Tampe
2012-01-25 20:37 ` Stefan Israelsson Tampe
2012-01-26 11:36   ` Andy Wingo
2012-01-27 21:13     ` Stefan Israelsson Tampe
2012-02-04 20:31       ` Stefan Israelsson Tampe
2012-02-07 21:37         ` Andy Wingo
2012-02-07 21:58           ` Stefan Israelsson Tampe
2012-02-07 22:55             ` Andy Wingo
2012-02-08 20:16               ` Stefan Israelsson Tampe
2012-02-08 21:50                 ` Stefan Israelsson Tampe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGua6m32hihM9OU-amHFLz60Q+KyijjEdWY-RUUcxau2nBNq6g@mail.gmail.com \
    --to=stefan.itampe@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).