0.4.0 • Published 5 years ago
uast-viewer v0.4.0
UAST Viewer
uast-viewer
is the simplest way to visualize Universal Abstract Syntax Trees (UASTs).
Features
- Drop-in component to display a UAST. Example
- Get full control of the tree. Example
- Integration with online source code editor Example
Documentation
See the documentation with live examples.
Installation
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} />
Contribute
Contributions are more than welcome, if you are interested please take a look to our Contributing Guidelines.
Code of Conduct
All activities under source{d} projects are governed by the source{d} code of conduct.
License
Apache License Version 2.0, see LICENSE