Package parse-number

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.

About This Package

Overview
Functions
Error conditions
Accessors

Overview

Author
Copyright 2002 Matthew Danish. - mrd.debian.org

Maintainer
Sharp Lispers - <sharplispers@googlegroups.com>

Version
This is a documentation of version 1.3

Homepage
There seems to be no offical homepage, but there is an entry at cliki.net.

Mailing List
No mailing list available.

Download
The source code is availabe from a repository at github.
You can download the repository as a zip file or you can get a tar file of the version 1.3.

Documentation
This documentation is generated with a fork of atdoc. The documentation tries to summarize available informations about the package parse-number.

Dependencies
parse-number does not depend on other packages.

License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Functions

Given a string, and start, end, and radix parameters, produce a number according to the syntax definitions in the Common Lisp Hyperspec.

Given a string, and start, end, and radix parameters, produce a number according to the syntax definitions in the Common Lisp Hyperspec - except for complex numbers.

Given a string, and start, end, and radix parameters, produce a number according to the syntax definitions in the Common Lisp Hyperspec -- except for complex numbers and negative numbers.

Error conditions

The type invalid-number consists of error conditions that are related to parsing a number.

Accessors

Returns the value of the error condition condition.

Returns the message of the error condition condition.

Exported Symbol Index

invalid-number, Condition
invalid-number-reason, Accessor
invalid-number-value, Accessor
parse-number, Function
parse-positive-real-number, Function
parse-real-number, Function