antlr4-tool icon indicating copy to clipboard operation
antlr4-tool copied to clipboard

antlr4-tool -l ts doesnt create a visitor.ts file

Open N3uR02812 opened this issue 6 years ago • 5 comments

Hello,

i have currently a problem, that the antlr4-tool doesnt create a Visitor for my Grammar. Even --visitor doesn't work. Also --listener ignores then my listener build.

Greetings

N3uR02812 avatar Aug 08 '18 09:08 N3uR02812

Hello @N3uR02812 I’m aware of the lack of typescript visitor support and I will add it as soon as I’m able.

As for the listener support, what do you mean exactly? Are saying that the listener option is ignored?

Thanks

mcchatman8009 avatar Aug 08 '18 13:08 mcchatman8009

Thank you,

yes i've tested it with --visitor and --listener. When i add --listener, then no listeners will be build. it looks like, that it has the same function like --no-listener.

N3uR02812 avatar Aug 08 '18 13:08 N3uR02812

@N3uR02812 or @alwonder I'm not seeing the issue with the --listener and --no-listener option.

When guys are running the command is the directory clean, meaning is it empty?

Also what version are you guys using?

I'm aware of the Visitor issue, which I'm addressing. However, I see no issue with the listener options

mcchatman8009 avatar Aug 09 '18 17:08 mcchatman8009

Sry for the late Response. I'm currently using the version 1.0.17. In my first attempt the directory was empty. I had --visitor and --listener in the Command. Nothing of them will be build. Only Lexer and Parser.

Hope it helps

N3uR02812 avatar Sep 03 '18 09:09 N3uR02812

@N3uR02812 I would try again with the current version, which is 1.0.22. Please let me know if that works for you. I do need to add Visitor support in TypeScript

Thanks,

mcchatman8009 avatar Sep 16 '18 21:09 mcchatman8009