Feature/ast visualization
Description
This PR adds a visualization tool that allows the visual mapping of the source code to the AST. This tool was develop on the context of the summer internship with topic "[CSE01] Visual Mapping of Source Code to Abstract Syntax Tree (AST)", from the INESC TEC Summer Internship 2024 programme.
To be precise, this PR creates the specialization of the tool for Clava. So, this PR must be merged before merging this one.
Changes Made
- Added specializations of
GenericVisualizationToolandGenericAstConverter, defined in the LARA API, that implements the needed operations for the Clava compiler.
How Has This Been Tested
This was mainly tested manually. As the time of writing, I am still doing some final stress testing for possible bugs, so you may see some minor fixes in the future.
To run the tool, in the script fed to Clava, import VisualizationTool and call await VisualizationTool.visualize() on the point of execution where you want to analyze the AST.