uast-viewer
is the simplest way to visualize Universal Abstract Syntax Trees (UASTs).
- Drop-in component to display a UAST. Example
- Get full control of the tree. Example
- Integration with online source code editor Example
See the documentation with live examples.
-
Install UAST Viewer as a dependency
# Yarn $ yarn add uast-viewer # NPM $ npm install uast-viewer
-
Import
uast-viewer
componentimport UASTViewer from 'uast-viewer';
-
Import styles by including
default-theme.css
import 'uast-viewer/dist/default-theme.css';
-
Render component with UAST JSON
<UASTViewer uast={uastJSON} />
Contributions are more than welcome, if you are interested please take a look to our Contributing Guidelines.
All activities under source{d} projects are governed by the source{d} code of conduct.
Apache License Version 2.0, see LICENSE