CERNY
The Cerny JavaScript library is shipped with solutions for validating JavaScript objects against a schema, pretty printing JSON, logging facilities, a dependency management solution and a dictionary mechanism.
Some conventions used:
If a current function or member is overwritten in a script, e.g. 'insertBefore', but will be referred to later, the new name of the member is composed of an underscore followed by the old name, e.g. '_insertBefore'.
If a simple name is not possible due to keyword restrictions, the name is proceeded by an underscore, e.g. '_delete'.
If a function takes arbitrarily many arguments, the documentation for these parameters must be called 'arguments'.
If the documentation for a function does not specify a return value, the function returns undefined.
Uses
Used by
Functions
object
Prototypal inheritance [DCP].
namespace
Create a namespace in CERNY. This function is inspired by the Yahoo! UI Library [YUI].
require
Check for the presence of expressions.
load
Load a script. This function is called in require. It has different implementations in various environments (browser, Rhino [RHI]).
Dictionary
Dictionary maker.
A dictionary is a mapping from terms to definitions. Definitions can contain nested terms. The process of evaluating a term is done by lookup.
lookup
Lookup a term in this dictionary.

