Common Lisp Package: NZ.GEEK.ABHISHEK.PY-CONFIGVALIDATOR

README:

FUNCTION

Public

SECTIONS

Returns a list of names of defined conf sections.

Undocumented

GET-OPTION

ITEMS

Private

CONSTRAINT-PART

Returns a substring of string C beginning after the first character and ending either before the first #] or the end of string. This represents the constraint portion of a value string. It is assumed that the first character is a #[ and that a constraint is denoted by the input string.

FIRST-QUOTED-STRING

Returns a substring of QUOTED-STRING beginning at the start and ending at either the first unescaped #" or the end of string. It is assumed that the opening quotation mark has already been consumed.

FIRST-WORD

Returns the first string token before a space in the string WORDS.

MAKE-VALIDATOR

Returns a closure of one argument S, that either returns validates the value represented by the string STR against the type and constraints of specifier SPEC, or the default value of SPEC if S is null.

NUMBER-LIKE-P

Returns T if string S represents a valid CL number, NIL otherwise.

PARSE-CONSTRAINED-SPEC-TYPE

Returns a SPECIFIER object of the constrained type denoted by the string S, initialized with any default or constraining values.

PARSE-NUMBER

Returns the CL number represented by string S if valid, otherwise return DEFAULT.

PARSE-SPECIFIER-VALUE

Returns a validator closure of the specifier and default value represented by the string SPEC-STRING.

PARSE-TYPED-VALUE

Returns a duck-typed specialized SPECIFIER object denoted by the string S. ALLOW-CONSTRAINT determines whether strings beginning with #[ are to be parsed as constrained types. (This is useful for a top-level specifying value, not perhaps for an ordinary value.)

REST-WORDS

Returns a list of string tokens that were separated by spaces in the string WORDS.

TOKENIZE-WORDS

Returns a list of string tokens separated by spaces in the string WORDS.

VALIDATE-VALUE

Returns a valid CL value according to the types and constraints of the specifier represented by SPEC-STRING and value represented by VALUE-STRING, as determined by the VALIDATE generic function.

VALUE-PART

Returns a substring of string C beginning with the first token after a #]. If no #] is found, the empty string is returned.

Undocumented

CONF-ITEMS

GET-CONF-OPTION

GET-SPEC-OPTION

SPEC-ITEMS

UNPARSE-VALUE

MACRO

Private

Undocumented

WITH-CONFIG-ERRORS ((SECTION-NAME OPTION-NAME &KEY (SPEC NIL)) &BODY BODY)

GENERIC-FUNCTION

Private

VALIDATE (SPEC-OBJECT VALUE)

Return a valid CL object, represented by either VALUE or some function of SPEC-OBJECT, depending on type constraints.

Undocumented

C/OPTION-NAME (CONDITION)

C/SECTION-NAME (CONDITION)

SLOT-ACCESSOR

Public

Undocumented

VC-CONF (OBJECT)

VC-SPEC (OBJECT)

Private

Undocumented

NUMBER-SPECIFIER-MAX (OBJECT)

NUMBER-SPECIFIER-MIN (OBJECT)

SPECIFIER-VALUE (OBJECT)

CLASS

Public

Undocumented

VALIDATED-CONFIG

Private

Undocumented

BOOLEAN-SPECIFIER

NUMBER-SPECIFIER

SPECIFIER

STRING-SPECIFIER

CONDITION

Private

Undocumented

NO-CONF-OPTION-ERROR

NO-CONF-SECTION-ERROR

NO-OPTION-ERROR

NO-SECTION-ERROR

NO-SPEC-OPTION-ERROR

NO-SPEC-SECTION-ERROR