ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjersti Bjørnestad Berg <kjersti.b...@ifi.uib.no>
Subject Re: javacc task and the package name
Date Thu, 23 May 2002 08:10:21 GMT
Guanling Chen wrote:

> Greetings,
> 
> I am using netbeans for Java development and using
> javacc task for my compiler. I'd like the output Java
> files of javacc has a package name, but I couldn't
> figure out how to do it. However, I see jjtree task
> has an attribute named "nodepackage" that does what I
> want.


The JJTree documentation says that by default, the node classes will be 
put in the same package as the parser classes. You define the parser 
package by inserting a package statement in your grammar file.

Ex:
PARSER_BEGIN(eg1)
package myPackage; //Add this line.
class eg1 {
	<snip/>
}
PARSER_END(eg1)

> 
> Any ideas?
> 
> Thanks!
> Guanling
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message