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

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

#1190 in Programming languages

Download history 2644/week @ 2024-09-23 1183/week @ 2024-09-30 19/week @ 2024-10-07 1/week @ 2024-10-14 8/week @ 2024-11-18 66/week @ 2024-12-02 88/week @ 2024-12-09 4/week @ 2024-12-16

160 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
~130K SLoC