-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor codebase to use AST #59
Comments
I agree, code inspection hits several walls:
The last point is the one I fear the most because users of py2puml may be executing some code when generating the documentation, causing unexpected consequences. |
Some downsides of relying only on AST parsing:
|
Good summary @lucsorel , concerning the downside related to AST being harder to understand, I kind of agree but believe it is a matter of time before one gets used to it. On this matter I would recommend the excellent hands-on documentation Green Tree Snake. I have been working during the past months on a version of py2puml using solely AST which I will send a pull request for as soon as it gives decent results. It is still on a Proof Of Concept stage and needs some bug fixing. |
py2puml uses internally a mix of code inspection and Abstract Syntax Tree parsing. The whole code based should be refactored to use AST parsing only as it is more robust and straightforward.
The text was updated successfully, but these errors were encountered: