Is antlr4's golang visitor pattern in a usable state?

拈花ヽ惹草 提交于 2020-12-16 04:35:22

问题


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:


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.



来源:https://stackoverflow.com/questions/54992660/is-antlr4s-golang-visitor-pattern-in-a-usable-state

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!