Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#294 closed defect (fixed)

Reader doesn't recognize terminating characters in some cases

Reported by: stassats Owned by: ehuelsmann
Priority: major Milestone: 1.1.1
Component: interpreter Version: 1.2.0-dev
Keywords: Cc: stassats@…
Parent Tickets:

Description

Things like #\Space; signals
Unrecognized character name: "Space;"

(set-macro-character #\? (lambda (stream char) (code-char (read stream nil nil t))))
'(a .?0)
Dot context error.

Both cases are a result of hard-coded checks for terminating macro-characters, and in case of #\ it's only '(' and ')'.

The attached patch fixes both issues.

Attachments (1)

reader.diff (1.1 KB) - added by stassats 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by stassats

Attachment: reader.diff added

comment:1 Changed 12 years ago by Mark Evenson

Summary: Reder doesn't recongize terminating characters in some casesReader doesn't recongize terminating characters in some cases

comment:2 Changed 12 years ago by Mark Evenson

Summary: Reader doesn't recongize terminating characters in some casesReader doesn't recognize terminating characters in some cases

comment:3 Changed 12 years ago by Mark Evenson

Component: otherinterpreter
Milestone: 1.2.0
Owner: changed from somebody to ehuelsmann
Version: 1.2.0-dev

comment:4 Changed 12 years ago by Mark Evenson

Resolution: fixed
Status: newclosed

(In [14357]) Fixes #294: Reader doesn't recognize terminating characters in some cases.

Patch and test by Stas.

comment:5 Changed 12 years ago by Mark Evenson

(In [14358]) Backport r14357 | mevenson | 2013-01-16 13:27:33 +0100 (Wed, 16 Jan 2013) | 3 lines.

Fixes #294: Reader doesn't recognize terminating characters in some cases.

Patch and test by Stas.

comment:6 Changed 12 years ago by Mark Evenson

Milestone: 1.2.01.1.1
Note: See TracTickets for help on using tickets.