#ast #macro-expansion #syntax-tree #lexer #rustc #compiler #abstract

nightly rustc-ap-syntax

Automatically published version of the package syntax in the rust-lang/rust repository from commit 834bc5650acf7019a53b409db68986857822812c The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish

611 major breaking releases

645.0.0 Feb 25, 2020
644.0.0 Feb 18, 2020
643.0.0 Feb 11, 2020
642.0.0 Feb 8, 2020
1.0.0 Jan 11, 2018

#1089 in Programming languages

Download history 140/week @ 2024-07-01 19/week @ 2024-07-15 261/week @ 2024-07-29 2644/week @ 2024-09-23 1183/week @ 2024-09-30

3,827 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

1.5MB
30K SLoC

The syntax crate contains those things concerned purely with syntax – that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide:


lib.rs:

The Rust parser and macro expander.

Note

This API is completely unstable and subject to change.

Dependencies

~7MB
~127K SLoC