gluegen with antlr3?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gluegen with antlr3?

jiapei100

Hi, all:
It seems whenever I specify my own antlr to

<nabble_embed>antlr.jar=/usr/share/java/antlr3.jar </nabble_embed>


I got an error:


<nabble_embed>generate.grammar: [antlr] Error: Could not find or load main class antlr.Tool BUILD FAILED /home/pei/MyPrograms/Java/Eclipse/Cannonical/gluegen/make/build.xml:806: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/gluegen/make/build.xml:635: The following error occurred while executing this line: /home/pei/MyPrograms/Java/Eclipse/Cannonical/gluegen/make/build.xml:173: ANTLR returned: 1 </nabble_embed>


Does that mean, current gluegen is not able to be built with antlr3, but only antlr-2.7.7?


Cheers
Pei
Welcome to Vision Open http://www.visionopen.com
Reply | Threaded
Open this post in threaded view
|

Re: gluegen with antlr3?

gouessej
Administrator
You probably have to adapt the grammar to make it work with ANTLR 3.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: gluegen with antlr3?

Sven Gothel
Administrator
On 07/29/2012 05:40 PM, gouessej [via jogamp] wrote:
> You probably have to adapt the grammar to make it work with ANTLR 3.
> Julien Gouesse

that's right. GlueGen is only proven to work with provided ANTLR!
If you desire to update GlueGen for ANTLR3 (for whatever reasons)
I am open to your git pull request.
Nevertheless, we will provide the ANTLR version used for GlueGen
within GlueGen for exactly the reasons you were troubled to compile it.

~Sven


signature.asc (910 bytes) Download Attachment