GSOC | Extending Common Lisp support

Charles Turner chturne@gmail.com
Mon Jun 18 13:20:00 GMT 2012


So I tried modifying the reader to process the colons as in CL. I've
attached a "patch", but it's probably not quite right. I'm having a
problem with the reader that's best explained by example:

#|kawa:1|# 'a:b
Looking b up in a
/dev/stdin:1:5: a does not designate any package
#|kawa:3|# 'test::a
Looking a up in test
/dev/stdin:3:9: test does not designate any package
#|kawa:4|# (make-package 'test)
#,(namespace "TEST")
#|kawa:5|# 'test::a
Looking ackaget up in test
{TEST}:ACKAGET ()

In the penultimate line, "Looking <giberish> up..", I'm at a loss as
to how and why the "ckaget" (which I assume is part of "package test")
is in the tokenBuffer. It's presence is affecting the endPos variable,
and so my symbols are getting messed up. Any pointers where this might
be happening? Hopefully it's a silly error on my part which would save
me having to spend the next week figuring out how the reader works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reader.patch
Type: application/octet-stream
Size: 2038 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/kawa/attachments/20120618/ce95c924/attachment.obj>


More information about the Kawa mailing list