Expand description
library for parsing Rust code and visualizing AST
This crate provides tools for parsing Rust source code and displaying its abstract syntax tree (AST).
Structs§
- AstJson
- A serializable representation of a Rust AST for JSON output
- Json
Visitor - A visitor that builds a JSON representation of a Rust AST
- Text
Visitor - TextVisitor is a visitor that prints the AST in a text format
Functions§
- parse_
rust_ file - Parse Rust source code from a file into an AST
- parse_
rust_ source - parse rust source code to ast
- print_
ast - print ast