mirror of
https://github.com/openharmony/third_party_rust_syn.git
synced 2026-07-21 18:25:44 -04:00
24b56b7a55
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
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,
attrs: [
Attribute {
pound_token: Pound,
style: Inner(
Bang
),
bracket_token: Bracket,
path: Path {
leading_colon: None,
segments: [
...
}