dongyou2635 2019-03-04 22:36
浏览 374
已采纳

antlr4的golang访问者模式是否处于可用状态?

I see no working examples, and I see a few pull requests that remain open. I would like to avoid going down the garden path.

https://github.com/antlr/antlr4/pull/1807

https://github.com/antlr/antlr4/issues/1843

There are also pull requests that make me think the golang target might be dead in the water.

https://github.com/antlr/antlr4/issues/2152

So all I am really asking is should I steer clear of golang, or is the documentation just somewhere that google doesn't see :-)

  • 写回答

1条回答 默认 最新

  • dongtiran7769 2019-04-18 09:45
    关注

    To people who don't click on the issue. The visitor pattern is usable. I wrote a sample app here I don't think it is written the way I was supposed to but it does what I wanted it to do. More discussion can be found on the issue and if I learn something new I will change my code.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?