Bug 140483

Summary: generate error use webkitIDL
Product: WebKit Reporter: zhao <fancy_sky>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Unspecified   
Attachments:
Description Flags
upload the latest script files in blinding directory none

Description zhao 2015-01-14 17:05:44 PST
Created attachment 244666 [details]
upload the latest script files in blinding directory

I download the lasted version on webkit.org
" Nightly r174650" 

I wanna generate the new code,but failed.
so i download the idl file from official web "http://trac.webkit.org/wiki/WebKitIDL"
module core {
    [
        CustomToJSObject
    ] interface Node {
        const unsigned short ELEMENT_NODE = 1;
        attribute Node parentNode;
        [TreatReturnedNullStringAs=Null] attribute DOMString nodeName;
        [Custom] Node appendChild([CustomReturn] Node newChild);
        void addEventListener(DOMString type, EventListener listener, optional boolean 

useCapture);
    };
}

my command is:
 ./generate-bindings.pl test.idl --generator JS --outputDir ../ --defines LANGUAGE_JAVASCRIPT

In generate-bindings.pl, it asks the "targetIdlFile","generator"and "outputDir" must be setted.

the error info:
"
Next token should be implements, but core at module core {
 IDLParser.pm:864 at IDLParser.pm line 142.
 in /home/jsc/scripts_2/test.idl at IDLParser.pm line 199.
"

i don't understand where it is error.