]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
Convert most code to new inner attribute syntax.
[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 /*!
12
13 The Rust parser and macro expander.
14
15 # Note
16
17 This API is completely unstable and subject to change.
18
19 */
20
21 #![crate_id = "syntax#0.10-pre"]
22 #![license = "MIT/ASL2"]
23 #![crate_type = "dylib"]
24 #![crate_type = "rlib"]
25 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
26        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
27        html_root_url = "http://static.rust-lang.org/doc/master")]
28
29 #![feature(macro_rules, globs, managed_boxes, default_type_params, phase,
30            quote)]
31 #![allow(deprecated)]
32
33 extern crate serialize;
34 extern crate term;
35 extern crate collections;
36 #[phase(syntax, link)]
37 extern crate log;
38
39 pub mod util {
40     pub mod interner;
41     #[cfg(test)]
42     pub mod parser_testing;
43     pub mod small_vector;
44 }
45
46 pub mod syntax {
47     pub use ext;
48     pub use parse;
49 }
50
51 pub mod owned_slice;
52 pub mod attr;
53 pub mod diagnostic;
54 pub mod codemap;
55 pub mod abi;
56 pub mod ast;
57 pub mod ast_util;
58 pub mod ast_map;
59 pub mod visit;
60 pub mod fold;
61
62
63 pub mod parse;
64 pub mod crateid;
65
66 pub mod print {
67     pub mod pp;
68     pub mod pprust;
69 }
70
71 pub mod ext {
72     pub mod asm;
73     pub mod base;
74     pub mod expand;
75     pub mod registrar;
76
77     pub mod quote;
78
79     pub mod deriving;
80
81     pub mod build;
82
83     pub mod tt {
84         pub mod transcribe;
85         pub mod macro_parser;
86         pub mod macro_rules;
87     }
88
89     pub mod mtwt;
90
91     pub mod cfg;
92     pub mod fmt;
93     pub mod format;
94     pub mod env;
95     pub mod bytes;
96     pub mod concat;
97     pub mod concat_idents;
98     pub mod log_syntax;
99     pub mod source_util;
100
101     pub mod trace_macros;
102 }