anltr应用实例: http://0x100.club/projects/antlr-example.html
https://abcdabcd987.com/notes-on-antlr4/
antlr入门: https://www.cnblogs.com/clonen/p/9083359.html
antlr 生成go的解析代码:
java -jar D:antlrantlr-4.7-complete.jar -Dlanguage=Go -visitor -package calc CALC.g4
代码示例:
https://github.com/yyt030/json2xml
下载依赖包:
go get github.com/antlr/antlr4/runtime/Go/antlr