Closed at15 closed 6 years ago
another way is to get ride of ANTLR and write a raw parser in Go, but this lost the portability to other language. example: https://blog.gopheracademy.com/advent-2014/parsers-lexers/
there are on going work for visitor pattern's in go https://github.com/antlr/antlr4/pull/1841 , though it looks it would still take some time before it got merged
close due to archive repo
Related #3 https://github.com/pboyer/antlr4/issues/93
Comparing the Java code and the Go runtime, the
visit
method should calltree.accept(visitor)
The code is in AbstractParseTreeVisitor.java
Accept
methods in*_parser.go