4

I need a tool/lib to generate UML diagrams from source of a custom programming language grammar. Is there a tool with API or another method to relatively easily tell to generator how it should to interpret the grammar. I have full control of the programming language lexer.

Ask to specific clarification if you have some doubts.

Maniero
  • 10,311
  • 6
  • 40
  • 85

2 Answers2

1

Looks like a plain AST visitor should do, shouldn't it? Assuming that you have classes, interfaces, and attributes in your language, that should be easy to handle.

Proper layout of a diagram is a different issue, and can be done afterwards.

Volker Stolz
  • 7,274
  • 1
  • 32
  • 50
0

The reverse engineering of a language into an UML diagram is really a very long and difficult job. If you don't have 12 months research project and deep knowledge of programming and UML then it is better to use an existing tool.

UML GURU
  • 1,452
  • 1
  • 9
  • 7