antlr4的golang访问者模式是否处于可用状态? [英] Is antlr4's golang visitor pattern in a usable state?
问题描述
我没有看到可用的示例,并且看到一些拉开请求仍保持打开状态.我想避免沿着花园的小路走.
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
还有拉请求,使我认为golang目标可能已死在水中.
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
所以我真正要问的是我应该避开golang,还是文档只是Google看不到的地方:-)
So all I am really asking is should I steer clear of golang, or is the documentation just somewhere that google doesn't see :-)
推荐答案
致那些没有点击问题的人.访客模式可用.我在此处编写了示例应用我认为这不是我应该做的那样写,但是它确实做了我想要做的事情.可以在该问题上找到更多讨论,如果我学到新知识,将会更改代码.
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.
这篇关于antlr4的golang访问者模式是否处于可用状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!