mcchatman8009 / antlr4-tool

A useful Antlr4 tool with full TypeScript support
Other
36 stars 20 forks source link

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

Open N3uR02812 opened 6 years ago

N3uR02812 commented 6 years ago

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

mcchatman8009 commented 6 years ago

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

N3uR02812 commented 6 years ago

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.

mcchatman8009 commented 6 years ago

@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

N3uR02812 commented 6 years ago

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

mcchatman8009 commented 6 years ago

@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,