简体   繁体   English

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/pull/1807

https://github.com/antlr/antlr4/issues/1843 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. 还有一些请求,使我认为golang目标可能死在水中。

https://github.com/antlr/antlr4/issues/2152 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 :-) 因此,我真正要问的是我应该避开golang,还是只是Google看不到的地方提供的文档:-)

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. 可以在该问题上找到更多讨论,如果我学到新知识,将会更改代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM