Research on the method of simplifying GNU compiler collection abstract syntax tree
Gao Feng, Hai-tao WU · DOAJ (DOAJ: Directory of Open Access Journals) · 2018
We propose a method to eliminate the redundancy in the text of abstract syntax tree.By using the Knuth-Morris-Pratt (KMP) algorithm,we design the core algorithm,simplify the abstract syntax tree,and select several classic code fragments to be tested.The experimental results show that the reduction rate of the algorithm is more than 90%.