]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/syntax.rs
48270702e0dd51230748db4e9b6c13cc2422a4b6
[rust.git] / src / libsyntax / syntax.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        vers = "0.8-pre",
18        uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
19
20 #[license = "MIT/ASL2"];
21 #[crate_type = "lib"];
22
23 extern mod extra;
24
25 pub mod util {
26     pub mod interner;
27     #[cfg(test)]
28     pub mod parser_testing;
29 }
30
31 pub mod syntax {
32     pub use ext;
33     pub use parse;
34 }
35
36 pub mod opt_vec;
37 pub mod attr;
38 pub mod diagnostic;
39 pub mod codemap;
40 pub mod abi;
41 pub mod ast;
42 pub mod ast_util;
43 pub mod ast_map;
44 pub mod visit;
45 pub mod fold;
46
47
48 pub mod parse;
49
50 pub mod print {
51     pub mod pp;
52     pub mod pprust;
53 }
54
55 pub mod ext {
56     pub mod asm;
57     pub mod base;
58     pub mod expand;
59
60     pub mod quote;
61
62     pub mod deriving;
63
64     pub mod build;
65
66     pub mod tt {
67         pub mod transcribe;
68         pub mod macro_parser;
69         pub mod macro_rules;
70     }
71
72
73     pub mod cfg;
74     pub mod fmt;
75     pub mod format;
76     pub mod env;
77     pub mod bytes;
78     pub mod concat_idents;
79     pub mod log_syntax;
80     pub mod auto_encode;
81     pub mod source_util;
82
83     pub mod trace_macros;
84 }