unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: "Jan Synáček" <jan.synacek@gmail.com>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Scheme syntax tree
Date: Fri, 4 Dec 2015 16:07:38 -0500	[thread overview]
Message-ID: <CAJ=RwfbqmGgDFx20PT7u6t+xiZ2e-w8PMmfcL6VDLCRo4K83kQ@mail.gmail.com> (raw)
In-Reply-To: <CACA+5f2zdKrh66d=AUtPgtS7Zj4X2eWb6-KHoQTZHF5anoU=0w@mail.gmail.com>

On Fri, Dec 4, 2015 at 3:08 PM, Jan Synáček <jan.synacek@gmail.com> wrote:
>
> I have a feeling that I saw a module that can parse a scheme program
> into a syntax tree somewhere. Does such module exist? Or do I have to
> roll my own?

Scheme is its own syntax tree, this is why they call Scheme (and other
Lisps) "homoiconic."  If you want to read a s-expression from an open
port, just use 'read'.

Happy hacking,

- Dave



      parent reply	other threads:[~2015-12-04 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04 20:08 Scheme syntax tree Jan Synáček
2015-12-04 21:00 ` David Kastrup
2015-12-04 21:07 ` Thompson, David [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='CAJ=RwfbqmGgDFx20PT7u6t+xiZ2e-w8PMmfcL6VDLCRo4K83kQ@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=guile-user@gnu.org \
    --cc=jan.synacek@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).