function IdlEnum(obj)
{
    /**
     * obj is an object produced by the WebIDLParser.js "dictionary"
     * production.
     */

    /** Self-explanatory. */
    this.name = obj.name;

    /** An array of values produced by the "enum" production. */
    this.values = obj.values;

}
type is an object produced by the WebIDLParser.js "type" production.  We
return a JavaScript value that matches the type, if we can figure out
how.