[climacs-devel] Re: Number recognition in the Lisp syntax module
John Q Splittist
splittist at yahoo.com
Wed Apr 19 15:56:19 UTC 2006
Troels Henriksen <athas <at> sigkill.dk> writes:
> Climacs' Lisp syntax module does not recognize numbers such as "2" or
> "3.17", though it does recognize them when written as "#2r1" or other
> complex forms. Instead, the `lex-token' function returns
> `complete-token-form's, where it should return `number-lexeme'.
I punted on this because Climacs cannot know what *READ-BASE* is intended to
be when the source file is read, so DIGIT-CHAR-P is only a guess. But,
practically speaking, it is probably a good enough guess (and only affects
integers and ratios), and if anyone really cares they can implement buffer-
local variables and a *buffer-read-base* vrbl (or a Base: entry on the mode-
line, like in the good old days) (:
JQS
More information about the climacs-devel
mailing list