PARSE-NUMBER is a library of functions for parsing strings into one of the standard Common Lisp number types without using the reader.
Clone or download
Latest commit 7707b22 Oct 31, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README Add README Jan 18, 2011
parse-number.asd Make ASDF 3.3 happy about it Apr 3, 2017
parse-number.lisp Handle positive numbers prefixed with + sign Oct 30, 2017
tests.lisp Handle positive numbers prefixed with + sign Oct 30, 2017
version.sexp Release 1.7 Oct 31, 2017

README

-*- Outline -*-

PARSE-NUMBER is a library of functions which accept an arbitrary
string and attempt to parse it, if possible into one of the standard
Common Lisp number types without using the reader, or else signal an
error of type INVALID-NUMBER

* Functions

 PARSE-NUMBER (string &key start end radix)

 PARSE-REAL-NUMBER (string &key start end radix)

 PARSE-POSITIVE-REAL-NUMBER (string &key start end radix)

* Error conditions

 INVALID-NUMBER (inherits PARSE-ERROR)

** Accessors

 INVALID-NUMBER-VALUE
 INVALID-NUMBER-REASON