Thread: [jsapigen-devel] Syntax error on example 6 and 7 in the manual
Status: Beta
Brought to you by:
tdz
From: Erik A. K. <eri...@em...> - 2010-03-02 11:54:19
|
Hello, I am having problems with example 6 and example 7 in the manual. Example 6. Static Constructors gives me the following error when processed with jsapigen: 18: m syntax error, unexpected TOK_IDENTIFIER, expecting ':' Line 18 is at eof. If I out commeny the "construct" line then jsapigen generates no error. Example 7. Constructors and Finalizers gives me the same error for both the "construct" and the "finalize line". Other examples are processed ok. I use Cygwin under Windows Vista. The gcc compiler used for compiling jsapigen is version 3.4.4. Any idea of what the problem is? -Erik Aagaard Knudsen |
From: Thomas Z. <td...@us...> - 2010-03-02 12:53:10
|
Hi, thanks for trying jsapigen. > I use Cygwin under Windows Vista. The gcc compiler used for compiling > jsapigen is version 3.4.4. I looked at the examples, but couldn't reproduce your error on my machine (x86-64, Fedora 12, gcc 4.4.3). > Any idea of what the problem is? Not yet. I attached my input and output files to this mail. Could you send me your input file? Sometimes it's just some typo. What character encoding do you use? jsapigen takes care of different line endings, but maybe there are other problems lurking. Otherwise I'll take a closer look at it within the next few days. (I'll have to install Cygwin first.) Regards, Thomas -- GnuPG: http://tdz.users.sourceforge.net/tdz.asc Fingerprint: 16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08 jsapigen - A free glue-code generator for Mozilla SpiderMonkey. See http://jsapigen.sourceforge.net for more information. |
From: Erik A. K. <eri...@em...> - 2010-03-02 15:14:19
Attachments:
constructor-finalizer.j
static-constructor.j
|
Hi, I am sorry. It is not example 6 and 7 in the Introduction that are giving me problems. It is example 6 and 7 in Writing Interface Descriptions I am having problems with. I have attached them to this mail. The character encoding is ASCII, with cr, lf for line endings. Regards Erik > -----Original Message----- > From: Thomas Zimmermann [mailto:td...@us...] > Sent: Tuesday, March 02, 2010 1:50 PM > To: Erik Aagaard Knudsen > Cc: jsa...@li... > Subject: Re: [jsapigen-devel] Syntax error on example 6 and 7 in the > manual > > Hi, > > thanks for trying jsapigen. > > > > I use Cygwin under Windows Vista. The gcc compiler used for compiling > > jsapigen is version 3.4.4. > > I looked at the examples, but couldn't reproduce your error on my > machine (x86-64, Fedora 12, gcc 4.4.3). > > > > Any idea of what the problem is? > > Not yet. I attached my input and output files to this mail. > > Could you send me your input file? Sometimes it's just some typo. > > What character encoding do you use? jsapigen takes care of different > line endings, but maybe there are other problems lurking. > > Otherwise I'll take a closer look at it within the next few days. (I'll > have to install Cygwin first.) > > > Regards, Thomas > > > > -- > GnuPG: http://tdz.users.sourceforge.net/tdz.asc > Fingerprint: 16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08 > > jsapigen - A free glue-code generator for Mozilla SpiderMonkey. See > http://jsapigen.sourceforge.net for more information. |
From: Thomas Z. <td...@us...> - 2010-03-02 16:53:08
Attachments:
example6.j
example7.j
|
Hi > It is example 6 and 7 in Writing Interface Descriptions I am having problems with. Argh! This is a stupid bug in the manual. The keywords 'construct' and 'finalize' are always followed by a colon to make their syntax similar to 'function' or 'property' declarations. Also parameters do only have types, but not names. Example 6 should therefore read like this: class my_class { construct : my_class_construct (int) <static>; }; I attached both fixed examples and I'll updated the manual. Thanks for reporting this. Regards, Thomas -- GnuPG: http://tdz.users.sourceforge.net/tdz.asc Fingerprint: 16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08 jsapigen - A free glue-code generator for Mozilla SpiderMonkey. See http://jsapigen.sourceforge.net for more information. |
From: Thomas Z. <td...@us...> - 2010-03-02 17:15:22
|
Hi > It is example 6 and 7 in Writing Interface Descriptions I am having problems with. The descriptions of constructors and finalizers were wrong. I just fixed the manual and uploaded a new version [1][2]. Thanks again for reporting. Regards Thomas [1] http://jsapigen.sourceforge.net/manual.html [2] http://downloads.sourceforge.net/project/jsapigen/jsapigen/jsapigen-0.5/jsapigen-0.5.1-manual.tar.gz -- GnuPG: http://tdz.users.sourceforge.net/tdz.asc Fingerprint: 16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08 jsapigen - A free glue-code generator for Mozilla SpiderMonkey. See http://jsapigen.sourceforge.net for more information. |