Skip to content

Clava implementation of the LARA package for visualization of the mapping between source code and AST.

License

Notifications You must be signed in to change notification settings

specs-feup/clava-visualization

Repository files navigation

Clava Visualization Tool

Clava integration of LARA's web tool for visualization and analysis of the AST and its source code.

For more details, see the LARA Framework repository.

Usage

Before using the tool, you must include the respective NPM package to your project:

npm install @specs-feup/clava-visualization

To launch or update the visualization tool, execute the following statements in your script:

import VisualizationTool from "@specs-feup/clava-visualization/api/VisualizationTool.js";

await VisualizationTool.visualize();

Once ready, Clava will provide the URL that should be opened in the browser to access the web interface. The function can also change the AST root and URL domain and port.

Other properties will allow the user to know other important information from the server:

VisualizationTool.isLaunched;  // true if the server is running
VisualizationTool.url;         // URL where the server is running
VisualizationTool.port;        // port to which the server is listening
VisualizationTool.hostname;    // hostname to which the server is listening

For more details, refer to the GenericVisualizationTool documentation, from LARA.

About

Clava implementation of the LARA package for visualization of the mapping between source code and AST.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published