This is the cl-morse Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 08 17:11:37 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-morse
Library for translating ASCII letters to morse code and back.
em7
BSD-3clause
1.0.0
cl-ppcre
(system).
src
(module).
Modules are listed depth-first from the system components tree.
Files are sorted by type and then listed depth-first from the systems components trees.
cl-morse/src/main.lisp
src
(module).
morse->string
(function).
string->morse
(function).
unknown-character
(condition).
*alpha->morse*
(special variable).
*morse->alpha*
(special variable).
*morselist*
(special variable).
char->morse
(function).
init-hashtables
(function).
morse->char
(function).
tokenize-string
(function).
unknown-ch
(reader method).
Packages are listed by definition order.
cl-morse
cl-ppcre
.
common-lisp
.
morse->string
(function).
string->morse
(function).
unknown-character
(condition).
*alpha->morse*
(special variable).
*morse->alpha*
(special variable).
*morselist*
(special variable).
char->morse
(function).
init-hashtables
(function).
morse->char
(function).
tokenize-string
(function).
unknown-ch
(generic reader).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Converts the string with morse code to string with alpha characters. If :skip-unknown-chars is true,
ignores characters which cannot be converted to a alpha. Otherwise signals
’unknown-character condition with unknown-ch reader to get the unknown character. A restart ’skip-character is provided in case you want to e.g. log the characters but skip them.
Converts the string to a morse code. If :skip-unknown-chars is true,
ignores characters which cannot be converted to a morse code. Otherwise signals
’unknown-character condition with unknown-ch reader to get the unknown character. A restart ’skip-character is provided in case you want to e.g. log the characters but skip them.
Is signalled when a character is not known and could not be converted to a morse code representation. The character is accessible through ’unknown-ch reader.
error
.
The unknown character itself.
:ch
This slot is read-only.
Hashtable mapping alpha strings to morse code. Not case sensitive.
Hashtable mapping morse code string to alpha.
Converts a single character to a morse code. If character could not be
converted, signals an error ’unknown-character.
Offers a restart ’skip-character which ignores the character and returns
an empty string.
Initializes *alpha->morse* and *morse->alpha* hashtables from values in morselist
Converts one morse code character to alpha character. If character could not be converted, signals an error ’unknown-character. Offers a restart ’skip-character which ignorese the character and returns an empty string.
Returns a list of strings which are morse tokens. The strings are shared with the ‘str‘ parameter. If str cannot be tokenized, returns NULL.
Jump to: | C F G I M S T U |
---|
Jump to: | C F G I M S T U |
---|
Jump to: | *
C S |
---|
Jump to: | *
C S |
---|
Jump to: | C F M P S U |
---|
Jump to: | C F M P S U |
---|