spyros
spyros

Reputation: 59

how to get info using ast parser

i want to get info from every class of a .java file so that i can save in a structure (maybe a list) the methods that every method of every class calls. Can anyone help me? thanx!

Upvotes: 1

Views: 333

Answers (1)

duffymo
duffymo

Reputation: 308763

ANTLR can generate a lexer/parser that will give you an AST. It has Java grammars ready to go, too.

Upvotes: 1

Related Questions