Common Lisp Package: BINGE-GRAMMAR

README:

FUNCTION

Public

CHARACTER (OBJECT)

Coerce OBJECT into a CHARACTER if possible. Legal inputs are characters, strings and symbols of length 1.

FLOAT (NUMBER &OPTIONAL (OTHER NIL OTHERP))

Converts any REAL to a float. If OTHER is not provided, it returns a SINGLE-FLOAT if NUMBER is not already a FLOAT. If OTHER is provided, the result is the same float format as OTHER.

STRING (X)

Coerces X into a string. If X is a string, X is returned. If X is a symbol, X's pname is returned. If X is a character then a one element string containing that character is returned. If X cannot be coerced into a string, an error occurs.

Private

TYPIFY-NAMES (BASE-TYPE NAME-COMPLETION-FUNCTIONS CONTAINER-CLASS)

Create objects of type CONTAINER-CLASS typifying names of variables/slots. The typification is done calling function in NAME-COMPLETION-FUNCTIONS passing the BASE-TYPE, which is the missing bit to fully qualify a C name.

Undocumented

POPULATE-GRAMMAR

VARIABLE

Public

Undocumented

DEFINE-GRAMMAR

CLASS

Public

Undocumented

CHARACTER (OBJECT)

FLOAT (NUMBER &OPTIONAL (OTHER NIL OTHERP))

INTEGER

STRING (X)