https://github.com/j3rn/reveal
Use a syntax-highlighting-esque construct to show the tree structure of code
https://github.com/j3rn/reveal
Last synced: over 1 year ago
JSON representation
Use a syntax-highlighting-esque construct to show the tree structure of code
- Host: GitHub
- URL: https://github.com/j3rn/reveal
- Owner: J3RN
- License: mit
- Created: 2022-10-01T17:08:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-28T16:14:08.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T09:13:10.255Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://reveal.j3rn.com
- Size: 1.25 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reveal
A tool to show the underlying AST stucture of your code through colored boxes. It's like syntax highlighting, but shows the full extent of syntactic constructs.
## Concept
This was the mockup that I created when I first had the idea:

Note that this example is in the Gleam programming language whereas the app currently only supports Elixir and JavaScript (more soon!).
## Examples
**Shows precedence**

**Node names available on hover**

## Available Scripts
In the project directory, you can run:
### `npm run dev`
Runs the app in the development mode. Open [http://localhost:5173](http://localhost:5173) to view it in your browser.
The page will reload when you make changes. You may also see any lint errors in the console.
### `npm run build`
Builds the app for production to the `dist` folder. It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!