The parse-number Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The parse-number Reference Manual

This is the parse-number Reference Manual, version 1.7, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:23:55 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

-*- 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


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 parse-number

Maintainer

Sharp Lispers <sharplispers@googlegroups.com>

Author

Matthew Danish <mrd@debian.org>

License

BSD 3-Clause

Description

Number parsing library

Version

1.7

Source

parse-number.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Next: , Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 parse-number.asd

Location

parse-number.asd

Systems

parse-number (system)


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 parse-number/parse-number.lisp

Parent

parse-number (system)

Location

parse-number.lisp

Packages

org.mapcar.parse-number

Exported Definitions
Internal Definitions

Previous: , Up: Files   [Contents][Index]

3.2 Other


Previous: , Up: Other files   [Contents][Index]

3.2.1 parse-number/version.sexp

Parent

parse-number (system)

Location

version.sexp


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 org.mapcar.parse-number

Source

parse-number.lisp (file)

Nickname

parse-number

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: parse-number STRING &key START END RADIX (FLOAT-FORMAT *READ-DEFAULT-FLOAT-FORMAT*)

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

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: parse-positive-real-number STRING &key START END RADIX (FLOAT-FORMAT *READ-DEFAULT-FLOAT-FORMAT*)

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.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: parse-real-number STRING &key START END RADIX (FLOAT-FORMAT *READ-DEFAULT-FLOAT-FORMAT*)

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.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Generic functions

Generic Function: invalid-number-reason CONDITION
Package

org.mapcar.parse-number

Methods
Method: invalid-number-reason (CONDITION invalid-number)
Source

parse-number.lisp (file)

Generic Function: invalid-number-value CONDITION
Package

org.mapcar.parse-number

Methods
Method: invalid-number-value (CONDITION invalid-number)
Source

parse-number.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Conditions

Condition: invalid-number ()
Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Direct superclasses

parse-error (condition)

Direct methods
Direct slots
Slot: value
Initargs

:value

Initform

(quote nil)

Readers

invalid-number-value (generic function)

Slot: reason
Initargs

:reason

Initform

(quote "not specified")

Readers

invalid-number-reason (generic function)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *white-space-characters*

A list of all of the whitespace characters.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: base-for-exponent-marker CHAR

Return the base for an exponent-marker.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: make-float/frac RADIX EXP-MARKER WHOLE-PLACE FRAC-PLACE EXP-PLACE

Create a float using EXP-MARKER as the exponent-marker and the parsed-integers WHOLE-PLACE, FRAC-PLACE, and EXP-PLACE as the integer part, fractional part, and exponent respectively.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: make-float/whole EXP-MARKER WHOLE-PLACE EXP-PLACE

Create a float where EXP-MARKER is the exponent-marker and the parsed-integers WHOLE-PLACE and EXP-PLACE as the integer part and the exponent respectively.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: number-value X

Get the value of a parsed-integer.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: parse-integer-and-places STRING START END &key RADIX

Parse an integer and return a ’parsed-integer’. This is an object whose numerical value can be accessed with the function number-value and whose length can be accessed with the function place.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: parse-integers STRING START END SPLITTING-POINTS &key RADIX

Parse a string containing multiple integers where SPLITTING-POINTS is a list of locations where each location is inbetween consecutive integers. This will return a list of parsed-integers. The last parsed-integer will have a negative value for its length.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: places X

Get the length of a parsed-integer.

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)

Function: white-space-p X

Is the given character a whitespace character?

Package

org.mapcar.parse-number

Source

parse-number.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   O   P  
Index Entry  Section

F
File, Lisp, parse-number.asd: The parse-number<dot>asd file
File, Lisp, parse-number/parse-number.lisp: The parse-number/parse-number<dot>lisp file
File, other, parse-number/version.sexp: The parse-number/version<dot>sexp file

L
Lisp File, parse-number.asd: The parse-number<dot>asd file
Lisp File, parse-number/parse-number.lisp: The parse-number/parse-number<dot>lisp file

O
Other File, parse-number/version.sexp: The parse-number/version<dot>sexp file

P
parse-number.asd: The parse-number<dot>asd file
parse-number/parse-number.lisp: The parse-number/parse-number<dot>lisp file
parse-number/version.sexp: The parse-number/version<dot>sexp file

Jump to:   F   L   O   P  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   B   F   G   I   M   N   P   W  
Index Entry  Section

B
base-for-exponent-marker: Internal functions

F
Function, base-for-exponent-marker: Internal functions
Function, make-float/frac: Internal functions
Function, make-float/whole: Internal functions
Function, number-value: Internal functions
Function, parse-integer-and-places: Internal functions
Function, parse-integers: Internal functions
Function, parse-number: Exported functions
Function, parse-positive-real-number: Exported functions
Function, parse-real-number: Exported functions
Function, places: Internal functions
Function, white-space-p: Internal functions

G
Generic Function, invalid-number-reason: Exported generic functions
Generic Function, invalid-number-value: Exported generic functions

I
invalid-number-reason: Exported generic functions
invalid-number-reason: Exported generic functions
invalid-number-value: Exported generic functions
invalid-number-value: Exported generic functions

M
make-float/frac: Internal functions
make-float/whole: Internal functions
Method, invalid-number-reason: Exported generic functions
Method, invalid-number-value: Exported generic functions

N
number-value: Internal functions

P
parse-integer-and-places: Internal functions
parse-integers: Internal functions
parse-number: Exported functions
parse-positive-real-number: Exported functions
parse-real-number: Exported functions
places: Internal functions

W
white-space-p: Internal functions

Jump to:   B   F   G   I   M   N   P   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
R   S   V  
Index Entry  Section

*
*white-space-characters*: Internal special variables

R
reason: Exported conditions

S
Slot, reason: Exported conditions
Slot, value: Exported conditions
Special Variable, *white-space-characters*: Internal special variables

V
value: Exported conditions

Jump to:   *  
R   S   V  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   I   O   P   S  
Index Entry  Section

C
Condition, invalid-number: Exported conditions

I
invalid-number: Exported conditions

O
org.mapcar.parse-number: The org<dot>mapcar<dot>parse-number package

P
Package, org.mapcar.parse-number: The org<dot>mapcar<dot>parse-number package
parse-number: The parse-number system

S
System, parse-number: The parse-number system

Jump to:   C   I   O   P   S