Crate rustc_parse[−][src]
The main parser interface.
Modules
lexer | |
parser | |
validate_attr | Meta-syntax validation logic of attributes for post-expansion. |
Macros
maybe_recover_from_interpolated_ty_qpath | If the next tokens are ill-formed |
maybe_whole | Like |
Constants
MACRO_ARGUMENTS |
Functions
fake_token_stream | |
file_to_source_file | Given a session and a path and an optional span (for error reporting),
adds the path to the session’s |
maybe_file_to_stream | Given a source file, produces a sequence of token trees. Returns any buffered errors from parsing the token stream. |
maybe_new_parser_from_source_str | Creates a new parser from a source string. Returns any buffered errors from lexing the initial token stream. |
maybe_source_file_to_parser | Given a |
new_parser_from_file | Creates a new parser, handling errors as appropriate if the file doesn’t exist. If a span is given, that is used on an error as the source of the problem. |
new_parser_from_source_str | Creates a new parser from a source string. |
nt_to_tokenstream | |
parse_crate_attrs_from_file | |
parse_crate_attrs_from_source_str | |
parse_crate_from_file | |
parse_crate_from_source_str | |
parse_in | Runs the given subparser |
parse_stream_from_source_str | |
prepend_attrs | |
source_file_to_parser | Given a |
source_file_to_stream | Given a |
stream_to_parser | Given a stream and the |
try_file_to_source_file | Given a session and a path and an optional span (for error reporting), add the path to the session’s source_map and return the new source_file or error when a file can’t be read. |