[antlr-interest] Import a class or a jar file in ANTLRWorks

Razvan Radu razvansr at yahoo.com
Wed Apr 28 04:50:04 PDT 2010


Hello,
In the last days i search everywhere for an answer to this:
How can i import a class or a jar file in my .g file in ANTLRWorks.
I se that you can import thinks like:

@header {
import java.util.HashMap;
}

but i can't import classes that i created in other project, or jar files of that project.
I tried everythink, for example:

@header {
import mypackage.ClassName;
}
and i put this jar in the same location whit the .g file and the generated files, but it dosen't work.

Please help me!

Thank you.



      


More information about the antlr-interest mailing list