rrevenantt / antlr4rust

ANTLR4 parser generator runtime for Rust programming laguage
Other
398 stars 70 forks source link

generated code with a java style package header #39

Closed BowenXiao1999 closed 2 years ago

BowenXiao1999 commented 2 years ago

Hi, thanks for the huge effort first!

java -jar ~/antlr4-4.8-2-SNAPSHOT-complete.jar -Dlanguage=Rust -visitor -o ../gen SqlBase.g4

The generated visitor.rs or lexer.rs has both a java style package header. Are there something wrong with the options? image

newca12 commented 2 years ago

Nothing wrong with your options. By the way I can't reproduce your problem. Where does com.risingwave come from ?

BowenXiao1999 commented 2 years ago

I have a @header { package com.risingwave.sql.parser.antlr.v4; }

in my g4 files (previous used for java runtime).

Now I removed it and it do not appear. Thanks!