https://github.com/gentoo90/rust_syntax_visualizer
https://github.com/gentoo90/rust_syntax_visualizer
developer-tools gtk3 gtksourceview gui rust syntax-tree
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gentoo90/rust_syntax_visualizer
- Owner: gentoo90
- Created: 2017-11-24T18:39:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T19:40:11.000Z (over 8 years ago)
- Last Synced: 2025-07-03T20:47:03.021Z (12 months ago)
- Topics: developer-tools, gtk3, gtksourceview, gui, rust, syntax-tree
- Language: Rust
- Size: 367 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Syntax Visualizer
A GUI tool that allows to explore the AST of a rust source file.
Status: proof of concept.
Uses `GTK+-3` and `GtkSourceView-3` for GUI and `syntax_syntex` for rust parsing.
Inspired by [Roslyn Syntax Visualizer](https://github.com/dotnet/roslyn/wiki/Syntax-Visualizer).

## Prerequisites
### `GTK+-3`
Follow [this instruction](http://gtk-rs.org/docs-src/requirements.html) to install.
### `GtkSourceView-3`
Debian and Ubuntu:
```
sudo apt-get install libgtksourceview-3.0-dev
```
Fedora:
```
sudo yum install gtksourceview3-devel
```
Windows x86:
```
pacman -S mingw-w64-i686-gtksourceview3
```
Windows x64:
```
pacman -S mingw-w64-x86_64-gtksourceview3
```
## Run
`cargo run -- path/to/rust/file.rs`