emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing symbol-with-position using eq


From: Clément Pit-Claudel
Subject: Re: Comparing symbol-with-position using eq
Date: Sat, 6 Apr 2019 08:23:49 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 2019-04-05 17:54, Alan Mackenzie wrote:
> I've been thinking that for the time (nearly 3 years) that I've been
> trying to fix this bug.  Is this how compilers for other Lisp systems are
> written?  It seems horribly easy to compile as Emacs does, by taking the
> (read) starting form and gradually transforming it as a Lisp form.  It is
> difficult to keep track of (text) source positions when one does this.

The following page might be of interest, about how Racket does this sort of 
things: https://docs.racket-lang.org/reference/Syntax_Quoting__quote-syntax.html

The idea is that macros (not just the byte-compiler) may want to access 
position information, to issue better diagnostics.  This is useful for small 
languages implemented using macros, like cl-loop.

Clément.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]