From: Damien Mattei <damien.mattei@oca.eu>
To: Per Bothner <per@bothner.com>, kawa <kawa@sourceware.org>
Subject: Re: syntax? in kawa/scheme
Date: Tue, 14 May 2024 00:20:02 +0200 [thread overview]
Message-ID: <ccfdb767-bfbd-4dee-99b4-1c9e981efe34@oca.eu> (raw)
In-Reply-To: <217f6a16-554d-4723-b792-d1ff16893b15@bothner.com>
i modify a SRFI 105 curly infix parser to move some function towards
macro, then to pre-parse the code on the fly at the pre-compil stage of
the macro,then use the pre-parsed code in the expansion phase. Finally
the run-time execution of the generated code will be faster as no
parsing will be done at this run-time phase. (exmple : a mathematic
formula is known and will not change at run-time ,the infix to prefix
operator precedence algorithm can be applied before runtime) . Prior i
parsed s-expr now it will be syntax expression, the logic is the same
but the code will change, instead of procedure or quoted procedures or
form it will be syntax objects. For the operator precedence i need to be
able to compare equality of some operator in a syntaxic form (like #'*,
#'+ etc...) I admit as there is no native curly-infix srfi 105 in kawa
it is already done by a parser in command line. (this more easy in Guile
but very few scheme implement SRFI 105 anyway so i will reuse this code
in the future)
Le 13/05/2024 à 23:47, Per Bothner a écrit :
> Ce message provient d’un expéditeur externe à l’université (adresse :
> per@bothner.com). Ne cliquez pas sur les liens et n’ouvrez pas les
> pièces jointes si vous ne connaissez pas l’expéditeur ou que vous
> n’êtes pas sûr du contenu. En cas de doute, merci de transférer le
> mail à abuse@univ-cotedazur.fr
>
>
> On 5/13/24 1:36 PM, Damien Mattei wrote:
>> but in fact my problem is to test equality for 2 syntax object and i
>> can not use equal? :
>
> Why? What are you actually trying to do?
next prev parent reply other threads:[~2024-05-13 22:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 12:20 Damien Mattei
2024-05-13 14:59 ` Per Bothner
2024-05-13 20:36 ` Damien Mattei
2024-05-13 21:47 ` Per Bothner
2024-05-13 22:20 ` Damien Mattei [this message]
2024-05-14 7:48 ` Damien Mattei
2024-05-14 7:59 ` Damien Mattei
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=ccfdb767-bfbd-4dee-99b4-1c9e981efe34@oca.eu \
--to=damien.mattei@oca.eu \
--cc=Damien.MATTEI@univ-cotedazur.fr \
--cc=kawa@sourceware.org \
--cc=per@bothner.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).