Arithmetic evaluation: Difference between revisions
Content added Content deleted
(CL bugfixes and better error handling) |
(better error handling in CL tokenizer) |
||
Line 848: | Line 848: | ||
((#\-) :subtract) |
((#\-) :subtract) |
||
(otherwise |
(otherwise |
||
( |
(unless (digit-char-p c) |
||
( |
(cerror "Skip it." "Unexpected character ~w." c) |
||
( |
(read-char stream) |
||
(return-from tokenize-stream |
|||
(tokenize-stream stream))) |
|||
(values :integer (read-integer)))) |
|||
(unless (find token #(:integer :eof)) |
(unless (find token #(:integer :eof)) |
||
(read-char stream)) |
(read-char stream)) |