This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GSOC | Extending Common Lisp support


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.

Attachment: reader.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]