rrevenantt / antlr4rust

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

-no-listener option generates code that refers to the (non existant) listener #86

Open pm100 opened 5 months ago

pm100 commented 5 months ago

running test VisitorCalc through antlr

java.exe -jar ..\..\antlr4-4.8-2-SNAPSHOT-complete.jar -no-listener -visitor -Dlanguage=Rust .\VisitorCalc.g4

produces code that refernces the listener

here for example in the generated parser

antlr_rust::tid! { impl<'input> TidAble<'input> for dyn VisitorCalcListener<'input> + 'input }