Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Parse a Rust source file into a syn::File and print out a debug representation of the syntax tree.

Use the following command from this directory to test this program by running it on its own source code:

cargo run -- src/main.rs

The output will begin with:

File {
    shebang: None,
    frontmatter: None,
    attrs: [
        Attribute {
            pound_token: Token![#],
            style: AttrStyle::Inner(
                Token![!],
            ),
            bracket_token: Bracket,
            meta: Meta::NameValue {
                path: Path {
                    leading_colon: None,
                    segments: [
    ...
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.