简体   繁体   中英

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

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 :-)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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