• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with java.g in ANTLR  RSS feed

 
Alejandro Barrero
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to learn ANTLR and I can work the examples and write my own grammars. But I want to work with Java source to create a UML reverse tool. I want to create a tree of packages with classes in packages and in each class a list of imports and methods and in each method the list of methods called. The problem is that I have not been able to determine which production involves a method call; I follow statement to block to blockStatement and I end up with expression but I can't find it. Maybe I am working with the wrong grammar.
 
Alejandro Barrero
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOLVED!
It is buried in unaryExpressionNotPlusMinus and primary.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!