Crate rusty_ast

Source
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
JsonVisitor
A visitor that builds a JSON representation of a Rust AST
TextVisitor
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