-
Notifications
You must be signed in to change notification settings - Fork 33
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
AST vs CST #4
Comments
I haven't thought about all this in detail, my idea was to have the AST while keeping the information which part belongs where in the source code so we could reorder the statements. I'm not fully aware about the difference between AST and CST though. Apparently people at our university don't think a master student in computer science should know that :P |
(First step and most important is analysis, auto fix is more of a very very super cool gimmick after I think.) |
I think we should focus on ASTs as they are a bit easier. Though what we could do already is assigning each AST element the according code-string. Like
-->
then we are not discarding additional information. We just don't parse it :) |
so agreeing with @sils1297 :) |
It is hard to auto-fix code if you only have an AST. Vital information has been dropped.
Also many of the generic bears rely on information typically not present in an AST.
Do you actually want a universal CST also?
The text was updated successfully, but these errors were encountered: