public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: kawa@sourceware.org
Subject: Kawa evaluation process
Date: Tue, 28 Jun 2022 06:54:28 +0200	[thread overview]
Message-ID: <CAMFYt2b3kXftsVW2xy6BAJNgm-xEdgOe9o8Kqphzq86LzEschQ@mail.gmail.com> (raw)

Hi,

as I mentioned before, I'm working on a structure editor for Scheme.
One challange that I've been facing is to represent atoms (other than
vectors and strings).

The problem with atoms, though, is that they can be of different types -
for example, the atom represented by "x" is a symbol, but if I add the
character ":" at the end, it becomes a keyword. Or the atom represented by
"1" is  an exact number, but if I add some non-numeric character, it
becomes something else.

Moreover, some values have more than one print representation - for
example, number 1 can be represented as "1", "#x1", "#o1" etc.

So I've been wondering if there's an option to create a "box" that would be
transparent to the process of evaluation (possibly with some tweaks to
Kawa): that I would have an object that holds a string and a value, and
when the evaluator asks it for the value, it would provide whatever value
would result from parsing the string?

(my current "solution" to this problem is that I only support symbols, but
my project reached the stage where this is no longer an option)

             reply	other threads:[~2022-06-28  4:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28  4:54 Panicz Maciej Godek [this message]
2022-06-28  5:19 ` Per Bothner
2022-06-28  6:17   ` Panicz Maciej Godek

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

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

  git send-email \
    --in-reply-to=CAMFYt2b3kXftsVW2xy6BAJNgm-xEdgOe9o8Kqphzq86LzEschQ@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=kawa@sourceware.org \
    /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).