1
Fork 0

syntax: Add explicit exports in parser mods

This commit is contained in:
Brian Anderson 2012-04-17 19:34:44 -07:00
parent 70a9ce626d
commit 321ccc123d
3 changed files with 37 additions and 0 deletions

View file

@ -2,6 +2,11 @@ import io::reader_util;
import util::interner; import util::interner;
import lexer::{ reader, new_reader, next_token, is_whitespace }; import lexer::{ reader, new_reader, next_token, is_whitespace };
export cmnt;
export lit;
export cmnt_style;
export gather_comments_and_literals;
enum cmnt_style { enum cmnt_style {
isolated, // No code on either side of each line of the comment isolated, // No code on either side of each line of the comment
trailing, // Code exists to the left of the comment trailing, // Code exists to the left of the comment

View file

@ -8,6 +8,33 @@ import ast::{node_id, spanned};
import ast_util::{mk_sp, ident_to_path}; import ast_util::{mk_sp, ident_to_path};
import lexer::reader; import lexer::reader;
export as_prec;
export expr_requires_semi_to_be_stmt;
export file_type;
export mk_item;
export next_node_id;
export new_parser_from_file;
export new_parser_from_source_str;
export parser;
export parse_crate_from_file;
export parse_crate_from_crate_file;
export parse_crate_from_source_str;
export parse_crate_mod;
export parse_expr;
export parse_expr_from_source_str;
export parse_from_source_str;
export parse_inner_attrs_and_next;
export parse_item;
export parse_mod_items;
export parse_outer_attributes;
export parse_pat;
export parse_sess;
export parse_stmt;
export parse_ty;
export prec_table;
export stmt_ends_with_semi;
export unop_prec;
enum restriction { enum restriction {
UNRESTRICTED, UNRESTRICTED,
RESTRICT_STMT_EXPR, RESTRICT_STMT_EXPR,

View file

@ -21,7 +21,12 @@ mod fold;
mod util { mod util {
mod interner; mod interner;
} }
mod parse { mod parse {
export parser;
export lexer;
export comments;
mod eval; mod eval;
mod lexer; mod lexer;
mod parser; mod parser;