]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
Link rustllvm statically, and distribute a static snapshot
[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 /*! This module contains the Rust parser. It maps source text
12  *  to token trees and to ASTs. It contains code for expanding
13  *  macros.
14  */
15
16 #[link(name = "syntax",
17        package_id = "syntax",
18        vers = "0.9-pre",
19        uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
20
21 #[license = "MIT/ASL2"];
22 #[crate_type = "dylib"];
23 #[crate_type = "rlib"];
24
25 #[feature(macro_rules, globs, managed_boxes)];
26
27 extern mod extra;
28
29 pub mod util {
30     pub mod interner;
31     #[cfg(test)]
32     pub mod parser_testing;
33     pub mod small_vector;
34 }
35
36 pub mod syntax {
37     pub use ext;
38     pub use parse;
39 }
40
41 pub mod opt_vec;
42 pub mod attr;
43 pub mod diagnostic;
44 pub mod codemap;
45 pub mod abi;
46 pub mod ast;
47 pub mod ast_util;
48 pub mod ast_map;
49 pub mod visit;
50 pub mod fold;
51
52
53 pub mod parse;
54
55 pub mod print {
56     pub mod pp;
57     pub mod pprust;
58 }
59
60 pub mod ext {
61     pub mod asm;
62     pub mod base;
63     pub mod expand;
64
65     pub mod quote;
66
67     pub mod deriving;
68
69     pub mod build;
70
71     pub mod tt {
72         pub mod transcribe;
73         pub mod macro_parser;
74         pub mod macro_rules;
75     }
76
77
78     pub mod cfg;
79     pub mod fmt;
80     pub mod format;
81     pub mod env;
82     pub mod bytes;
83     pub mod concat;
84     pub mod concat_idents;
85     pub mod log_syntax;
86     pub mod source_util;
87
88     pub mod trace_macros;
89 }