Bug 140483 - generate error use webkitIDL
Summary: generate error use webkitIDL
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 17:05 PST by zhao
Modified: 2015-01-14 17:05 PST (History)
0 users

See Also:


Attachments
upload the latest script files in blinding directory (360.66 KB, application/octet-stream)
2015-01-14 17:05 PST, zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.