1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#![warn(missing_docs)]
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
#![cfg_attr(feature = "clippy", allow(precedence, doc_markdown))]
#[macro_use]
extern crate failure;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate quote;
extern crate regex;
extern crate syn;
mod reserved;
mod parse_name;
pub use self::parse_name::{parse_extern_name, parse_own_name};
pub use self::reserved::reserved_check;
#[macro_export]
macro_rules! tokens {
($tokens:expr) => {
match $tokens {
Ok(tokens) => tokens.parse().unwrap(),
Err(error) => panic!("{}", error),
}
}
}