[climacs-devel] (Patch included) Recognition of literal cons-cells in the Lisp syntax module

Troels Henriksen athas at sigkill.dk
Thu May 11 18:34:46 UTC 2006


I have been hacking a bit at the Lisp syntax module and tried to
understand how it works (not easy given the lack of comments), but I
think I've gotten a general hang of it. My reason for doing so is
that the syntax module does not recognize literal cons cells (eg. (1
. 2)), parsing them as complete-list-forms. The attached patch makes
the syntax module recognize cons cells, but because I'm not sure I've
done this properly, I'm going to post it here for discussion and
criticism before I commit anything.

Comments?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cons-cells.patch
Type: text/x-patch
Size: 2819 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20060511/58338139/attachment.bin>
-------------- next part --------------

(I know `lex-token' is becoming very ugly, but from looking at other
definitions of token lexing functions, I am led to believe that
uglyness is almost a necessity.)

-- 
\  Troels "Athas" Henriksen
/\ - Insert witty signature


More information about the climacs-devel mailing list