unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: how to implement mutual recursive parsers in syntax-parse
Date: Tue, 15 May 2012 20:38:35 +0200	[thread overview]
Message-ID: <87obppmgr8.fsf@pobox.com> (raw)
In-Reply-To: <CAGua6m3ovE7k83tbQSztNwc79ju4jYOg4AJWURm9=gZ8tgjq0Q@mail.gmail.com> (Stefan Israelsson Tampe's message of "Mon, 14 May 2012 21:13:11 +0200")

On Mon 14 May 2012 21:13, Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> (begin
>    (define parser-a code-a ...)
>    (define-syntax a spec-a))
>
> (begin
>    (define parser-b code-b ...)
>    (define-syntax b spec-b))
>
> In racket they manage to evaluate the define-syntax forms before the define-forms cause in the expansion
> of code-a amd code-b they need the spec's spec-a and spec-b.
>
> Do you have any ideas how solve this. I do have a fix for problem but it is not easy to use.

Have you tried master?  If I understand you correctly I think it should
work there.

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2012-05-15 18:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14 19:13 how to implement mutual recursive parsers in syntax-parse Stefan Israelsson Tampe
2012-05-15 18:38 ` Andy Wingo [this message]
2012-05-18 21:58   ` Stefan Israelsson Tampe
2012-05-21  8:25     ` Andy Wingo
2012-05-18 22:05   ` Stefan Israelsson Tampe
2012-05-21  8:59     ` Andy Wingo
2012-05-21  9:33       ` Stefan Israelsson Tampe

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=87obppmgr8.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=stefan.itampe@gmail.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).