]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
rollup merge of #20482: kmcallister/macro-reform
[rust.git] / src / libsyntax / lib.rs
1 // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! The Rust parser and macro expander.
12 //!
13 //! # Note
14 //!
15 //! This API is completely unstable and subject to change.
16
17 #![crate_name = "syntax"]
18 #![experimental]
19 #![crate_type = "dylib"]
20 #![crate_type = "rlib"]
21 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23        html_root_url = "http://doc.rust-lang.org/nightly/")]
24
25 #![allow(unknown_features)]
26 #![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
27 #![feature(quote, unsafe_destructor)]
28 #![feature(unboxed_closures)]
29 #![feature(old_orphan_check)]
30 #![feature(associated_types)]
31
32 extern crate arena;
33 extern crate fmt_macros;
34 extern crate serialize;
35 extern crate term;
36 extern crate libc;
37
38 #[cfg(stage0)]
39 #[phase(plugin, link)]
40 extern crate log;
41
42 #[cfg(not(stage0))]
43 #[macro_use]
44 extern crate log;
45
46 extern crate "serialize" as rustc_serialize; // used by deriving
47
48 pub mod util {
49     pub mod interner;
50     #[cfg(test)]
51     pub mod parser_testing;
52     pub mod small_vector;
53 }
54
55 pub mod diagnostics {
56     pub mod macros;
57     pub mod plugin;
58     pub mod registry;
59 }
60
61 pub mod syntax {
62     pub use ext;
63     pub use parse;
64     pub use ast;
65 }
66
67 pub mod abi;
68 pub mod ast;
69 pub mod ast_map;
70 pub mod ast_util;
71 pub mod attr;
72 pub mod codemap;
73 pub mod config;
74 pub mod diagnostic;
75 pub mod feature_gate;
76 pub mod fold;
77 pub mod owned_slice;
78 pub mod parse;
79 pub mod ptr;
80 pub mod show_span;
81 pub mod std_inject;
82 pub mod test;
83 pub mod visit;
84
85 pub mod print {
86     pub mod pp;
87     pub mod pprust;
88 }
89
90 pub mod ext {
91     pub mod asm;
92     pub mod base;
93     pub mod build;
94     pub mod bytes;
95     pub mod cfg;
96     pub mod cfg_attr;
97     pub mod concat;
98     pub mod concat_idents;
99     pub mod deriving;
100     pub mod env;
101     pub mod expand;
102     pub mod fmt;
103     pub mod format;
104     pub mod log_syntax;
105     pub mod mtwt;
106     pub mod quote;
107     pub mod source_util;
108     pub mod trace_macros;
109
110     pub mod tt {
111         pub mod transcribe;
112         pub mod macro_parser;
113         pub mod macro_rules;
114     }
115 }