2012-05-29 23:35:12 -05:00
|
|
|
#[link(name = "syntax",
|
2012-10-12 18:41:25 -05:00
|
|
|
vers = "0.5",
|
2012-05-29 23:35:12 -05:00
|
|
|
uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
|
|
|
|
|
|
|
|
|
2012-03-22 17:27:35 -05:00
|
|
|
|
|
|
|
#[crate_type = "lib"];
|
2012-03-22 17:35:22 -05:00
|
|
|
|
2012-04-05 19:30:26 -05:00
|
|
|
#[no_core];
|
|
|
|
|
2012-09-18 17:52:21 -05:00
|
|
|
#[legacy_modes];
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-09-18 17:52:21 -05:00
|
|
|
|
Nomenclature fixes in the lint checker. Fewer double-negatives.
New style is allow(foo), warn(foo), deny(foo) and forbid(foo),
mirrored by -A foo, -W foo, -D foo and -F foo on command line.
These replace -W no-foo, -W foo, -W err-foo, respectively.
Forbid is new, and means "deny, and you can't override it".
2012-07-26 19:08:21 -05:00
|
|
|
#[allow(vecs_implicitly_copyable)];
|
2012-09-18 13:20:57 -05:00
|
|
|
#[allow(non_camel_case_types)];
|
2012-09-28 20:38:59 -05:00
|
|
|
#[allow(deprecated_mode)];
|
|
|
|
#[allow(deprecated_pattern)];
|
2012-06-04 20:34:24 -05:00
|
|
|
|
2012-10-12 18:41:25 -05:00
|
|
|
extern mod core(vers = "0.5");
|
|
|
|
extern mod std(vers = "0.5");
|
2012-04-05 19:30:26 -05:00
|
|
|
|
2012-09-05 13:46:25 -05:00
|
|
|
use core::*;
|
2012-03-22 18:07:30 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod attr;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 19:31:32 -05:00
|
|
|
mod diagnostic;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 17:35:22 -05:00
|
|
|
mod codemap;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 18:07:30 -05:00
|
|
|
mod ast;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 18:07:30 -05:00
|
|
|
mod ast_util;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-22 01:34:34 -05:00
|
|
|
mod ast_map;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 18:07:30 -05:00
|
|
|
mod visit;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 19:21:34 -05:00
|
|
|
mod fold;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 18:58:30 -05:00
|
|
|
mod util {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-03-22 18:58:30 -05:00
|
|
|
mod interner;
|
2012-03-22 19:49:30 -05:00
|
|
|
}
|
2012-04-17 21:34:44 -05:00
|
|
|
|
2012-03-22 19:49:30 -05:00
|
|
|
mod parse {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-04-17 21:34:44 -05:00
|
|
|
export parser;
|
2012-06-12 12:59:50 -05:00
|
|
|
export common;
|
2012-04-17 21:34:44 -05:00
|
|
|
export lexer;
|
2012-05-21 12:45:56 -05:00
|
|
|
export token;
|
2012-04-17 21:34:44 -05:00
|
|
|
export comments;
|
2012-04-17 22:41:04 -05:00
|
|
|
export prec;
|
2012-04-18 00:02:00 -05:00
|
|
|
export classify;
|
2012-04-19 22:51:31 -05:00
|
|
|
export attr;
|
2012-04-17 21:34:44 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod eval;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 19:49:30 -05:00
|
|
|
mod lexer;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod parser;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod token;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-15 05:27:24 -05:00
|
|
|
mod comments;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-19 22:51:31 -05:00
|
|
|
mod attr;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-17 22:41:04 -05:00
|
|
|
|
2012-07-04 16:53:12 -05:00
|
|
|
/// Common routines shared by parser mods
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-19 23:18:33 -05:00
|
|
|
mod common;
|
|
|
|
|
2012-07-04 16:53:12 -05:00
|
|
|
/// Functions dealing with operator precedence
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-17 22:41:04 -05:00
|
|
|
mod prec;
|
2012-04-18 00:02:00 -05:00
|
|
|
|
2012-07-04 16:53:12 -05:00
|
|
|
/// Routines the parser uses to classify AST nodes
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-04-18 00:02:00 -05:00
|
|
|
mod classify;
|
2012-09-08 17:50:29 -05:00
|
|
|
|
|
|
|
/// Reporting obsolete syntax
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-09-08 17:50:29 -05:00
|
|
|
mod obsolete;
|
2012-03-22 20:01:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod print {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod pp;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 20:01:08 -05:00
|
|
|
mod pprust;
|
2012-03-29 15:48:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod ext {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod base;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod expand;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod qquote;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod build;
|
|
|
|
|
2012-06-27 17:29:35 -05:00
|
|
|
mod tt {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-06-27 17:29:35 -05:00
|
|
|
mod transcribe;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-24 20:19:39 -05:00
|
|
|
mod macro_parser;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-06 20:04:28 -05:00
|
|
|
mod macro_rules;
|
2012-06-27 17:29:35 -05:00
|
|
|
}
|
2012-06-12 12:59:50 -05:00
|
|
|
|
2012-07-06 20:04:28 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-06 20:04:28 -05:00
|
|
|
mod simplext;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod fmt;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod env;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod concat_idents;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod ident_to_str;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod log_syntax;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-29 15:48:05 -05:00
|
|
|
mod auto_serialize;
|
2012-09-18 12:19:26 -05:00
|
|
|
#[legacy_exports]
|
2012-05-14 19:43:31 -05:00
|
|
|
mod source_util;
|
2012-07-05 14:10:33 -05:00
|
|
|
|
2012-07-05 18:07:53 -05:00
|
|
|
mod pipes {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-07-05 18:07:53 -05:00
|
|
|
mod ast_builder;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-05 20:01:11 -05:00
|
|
|
mod parse_proto;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-05 20:01:11 -05:00
|
|
|
mod pipec;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-16 19:27:04 -05:00
|
|
|
mod proto;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-16 19:27:04 -05:00
|
|
|
mod check;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-17 19:03:27 -05:00
|
|
|
mod liveness;
|
2012-07-05 18:07:53 -05:00
|
|
|
}
|
2012-08-15 12:45:10 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-15 12:45:10 -05:00
|
|
|
mod trace_macros;
|
2012-03-29 15:48:05 -05:00
|
|
|
}
|