Skip to content

idhyt/antlr4-java-callgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于 ANTLR 的 Java 语法解析器, 用于解析 Java 语法树并生成 Callgraph

python 运行时依赖: antlr4-python3-runtime

❯ python process.py -i ./testcase
2023-42-15 19:42:37 __main__ | INFO | [5/5] create java callgraph success for testcase/InterpreterTreeTextProvider.java
2023-42-15 19:42:38 __main__ | INFO | [3/5] create java callgraph success for testcase/FailedPredicateException.java
2023-42-15 19:42:38 __main__ | INFO | [1/5] create java callgraph success for testcase/ANTLRInputStream.java
2023-42-15 19:42:39 __main__ | INFO | [4/5] create java callgraph success for testcase/Lexer.java
2023-42-15 19:42:39 __main__ | INFO | [2/5] create java callgraph success for testcase/ATNDescriber.java

vscode 请使用 Graphviz Interactive Preview 插件来查看生成的dot文件

./callgraph.jpg

About

create java callgraph by antlr4 lexer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published