Crate rustc_ap_rustc_parse[−][src]
Expand description
The main parser interface.
Modules
Macros
If the next tokens are ill-formed $ty::
recover them as <$ty>::
.
Like maybe_whole_expr
, but for things other than expressions.
Constants
Functions
Given a source file, produces a sequence of token trees. Returns any buffered errors from parsing the token stream.
Creates a new parser from a source string. Returns any buffered errors from lexing the initial token stream.
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.
Creates a new parser from a source string.
Runs the given subparser f
on the tokens of the given attr
’s item.
Given a source_file
, produces a sequence of token trees.
Given a stream and the ParseSess
, produces a parser.