ANTLR 4 - Tree pattern matching
问题 I am trying to understand parse tree matching in ANTLR 4, so for that I have the following java code: package sampleCodes; public class fruits { public static void main(String[] args){ int a = 10; System.out.println(a); } } I am using ANTLR 4 to create a parse tree of this code. Now, I want to use tree pattern matching function to find "int a = 10;". There is a doc on GitHub: https://github.com/antlr/antlr4/blob/master/doc/tree-matching.md which explains this(something like this) by an