[pro] #; comments...
Pascal Costanza
pc at p-cos.net
Mon May 7 06:30:14 UTC 2012
On 7 May 2012, at 08:27, Pascal Costanza wrote:
>
> On 7 May 2012, at 00:54, Faré wrote:
>
>>>> But if you really like this syntax, there is nothing in the ANS that
>>>> would
>>>> preclude a source module from including the necessary read-time
>>>> set-dispatch-macro-char call early in its own source.
>>>
>>> Module-local syntax would be nice, but there is currently no
>>> editor(Emacs) and ASDF support for that so I won't use it
>>>
>> 1- Since ASDF 2.019, there is support for :around-compile,
>> that allows you to effectively redefine syntax around a module.
>> Combined with reader-interception, you can portably redefine
>> your syntax to be that of e.g. python, or whatever you fancy.
>> You know where to find emacs modes.
>
> This seems to suggest that this only works for compiled code. What about interpreted code?
>
>> 2- Since well before that, there is named-readtables.
>> I recommend you make your #; syntax available as a named readtable.
>>
>> 3- You can always define a new subclass of cl-source-file,
>> that gets compiled within proper syntax redefinition.
>
>
> Yes, there are a lot of ways to implement this. But that's my primary interest (the implementation is trivial).
Pressed the send button too fast: That's _not_ my primary interest…
Pascal
--
Pascal Costanza
More information about the pro
mailing list