pboyer / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
Other
26 stars 1 forks source link

package command line option does not affect lexer #46

Closed KvanTTT closed 8 years ago

KvanTTT commented 8 years ago

I am using command line option -package main. But it's working only for parser, not for lexer.

sridharxp commented 8 years ago

In Go.stg (line 1330) the following change seems to work. Create the jar file from package parser to

<if(lexerFile.genPackage)>
package <lexerFile.genPackage> 
<else>
package parser 
<endif>
pboyer commented 8 years ago

Fixed by #49. @KvanTTT Let me know if you still see this issue.

KvanTTT commented 8 years ago

It's working for now. Thanks!