commit | 9d8f1973981baf3b7e072ddb7f4d8d0af2a0f1f6 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 11:58:48 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 11:58:48 2016 -0700 |
tree | f7ead36ae623c0effae01d615421e0479b487779 | |
parent | 99ef8c99b4e5c1c16c74b56c49be6e0f8dba0730 [diff] |
Arrange parsing into modules
Parse Rust structs and enums without a Syntex dependency, intended for use with Macros 1.1.
[dependencies] item = "0.2"
extern crate item; let raw = " #[derive(Debug, Clone, Eq, PartialEq)] pub struct Item { pub ident: Ident, pub vis: Visibility, pub attrs: Vec<Attribute>, pub generics: Generics, pub body: Body, } "; let ast = item::parse(raw);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.