pushed updated library tests Felix Thibault (21 Aug 2020 22:28 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (22 Aug 2020 15:27 UTC)
Re: pushed updated library tests Felix Thibault (22 Aug 2020 16:23 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (25 Aug 2020 07:04 UTC)
Re: pushed updated library tests Alex Shinn (25 Aug 2020 07:20 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (25 Aug 2020 07:40 UTC)
Re: pushed updated library tests Alex Shinn (25 Aug 2020 07:58 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (25 Aug 2020 08:13 UTC)
Re: pushed updated library tests Alex Shinn (27 Aug 2020 02:14 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (27 Aug 2020 07:35 UTC)
Re: pushed updated library tests John Cowan (27 Aug 2020 17:43 UTC)
Re: pushed updated library tests Felix Thibault (27 Aug 2020 22:19 UTC)
Re: pushed updated library tests Arthur A. Gleckler (27 Aug 2020 23:23 UTC)
Re: pushed updated library tests Alex Shinn (28 Aug 2020 00:43 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (28 Aug 2020 05:26 UTC)
Re: pushed updated library tests Alex Shinn (28 Aug 2020 05:35 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (28 Aug 2020 05:52 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (28 Aug 2020 13:47 UTC)
Re: pushed updated library tests Alex Shinn (28 Aug 2020 14:24 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (28 Aug 2020 15:03 UTC)
Re: pushed updated library tests Alex Shinn (31 Aug 2020 13:14 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (31 Aug 2020 14:44 UTC)
Re: pushed updated library tests Alex Shinn (31 Aug 2020 21:15 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (01 Sep 2020 06:52 UTC)
Re: pushed updated library tests Alex Shinn (01 Sep 2020 07:18 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (01 Sep 2020 07:24 UTC)
Re: pushed updated library tests Alex Shinn (01 Sep 2020 07:29 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (01 Sep 2020 07:47 UTC)
Re: pushed updated library tests Alex Shinn (02 Sep 2020 01:19 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (02 Sep 2020 07:02 UTC)
Re: pushed updated library tests Marc Nieper-Wißkirchen (31 Aug 2020 15:50 UTC)

Re: pushed updated library tests Marc Nieper-Wißkirchen 01 Sep 2020 06:52 UTC

Am Mo., 31. Aug. 2020 um 23:15 Uhr schrieb Alex Shinn <xxxxxx@gmail.com>:
>
> On Mon, Aug 31, 2020 at 11:44 PM Marc Nieper-Wißkirchen <xxxxxx@nieper-wisskirchen.de> wrote:
>>
>> Am Mo., 31. Aug. 2020 um 15:14 Uhr schrieb Alex Shinn <xxxxxx@gmail.com>:
>>
>> (2) Whether (let-syntax ((q (syntax-rules () ((_ x) 'x)))) (q #=0(1 .
>> #0#))) is an error or not.
>>
>> Ad (2). This is harder, so I will try to do my best to explain my
>> reasoning. Before macro expansion (and not taking account lexical
>> contexts), a program (or library) is just a Scheme datum (or, rather,
>> represented by one) or a list of datums. The components of that data
>> are again data. When you claim that the language "except in literals"
>> talks about this lexical structure of the program and does not take
>> the expansion (and lexical contexts), "the resulting AST", into
>> account, you seem to implicitly claim that one can single out
>> particular datums in this lexical structure being literals or not.
>
>
> We can, because <literal> also has a precise definition in the formal syntax:
>
>   <literal> -> <quotation> | <self-evaluating>
>   <quotation> -> ’<datum> | (quote <datum>)

No, you can't in any sensible way (see my detailed argument in the
previous post).

Given the program

(import (scheme base) (scheme write))
(define-syntax print
  (syntax-rules ()
    ((print a) (begin (write a) (newline)))))
(print "Hello, World!")

by your reading, "Hello, World!" is not a literal because by following
the production rules without taking macro expansion into account, you
will never get to the production rule of <literal>. You will end up
with <macro use> and be stuck there.