niklauslee / staruml-python

StarUML Extension for Python Code Generation
MIT License
98 stars 31 forks source link

Reverse engineering functionality implemented. #15

Closed VadymMatus closed 2 years ago

VadymMatus commented 2 years ago

At first I tried to implement it with a parser in JS, specifically with antlr4, and at the end I ran into many problems specifically with grammar, which needed to be constantly completed ... I decided to implement this using the standard AST module, I call the Python script and pass the path to source, it returns me a JSON AST, which I already parse in the extension, tried it on my projects, it works fine, I'm waiting for suggestions for improvement.

niklauslee commented 2 years ago

@VadymMatus Good job! @IvanMtze Could you review this PR?