Expand description
The main parser interface.
Modules§
- errors 🔒
 - lexer
 - parser
 - validate_
attr  - Meta-syntax validation logic of attributes for post-expansion.
 
Macros§
- exp
 - maybe_
recover_ from_ interpolated_ ty_ qpath  - If the next tokens are ill-formed 
$ty::recover them as<$ty>::. 
Constants§
Statics§
- DEFAULT_
LOCALE_ RESOURCE  - Raw content of Fluent resource for this crate, generated by 
fluent_messagesmacro, imported byrustc_driverto include all crates’ resources in one bundle. 
Functions§
- fake_
token_ stream_ for_ crate  - fake_
token_ stream_ for_ item  - new_
parser_ from_ file  - Creates a new parser from a filename. On failure, the errors must be consumed via
unwrap_or_emit_fatal,emit,cancel, etc., otherwise a panic will occur when they are dropped. - new_
parser_ 🔒from_ source_ file  - Given a session and a 
source_file, return a parser. Returns any buffered errors from lexing the initial token stream. - new_
parser_ from_ source_ str  - Creates a new parser from a source string. On failure, the errors must be consumed via
unwrap_or_emit_fatal,emit,cancel, etc., otherwise a panic will occur when they are dropped. - parse_
cfg_ attr  - parse_
in  - Runs the given subparser 
fon the tokens of the givenattr’s item. - source_
file_ 🔒to_ stream  - Given a source file, produces a sequence of token trees. Returns any buffered errors from parsing the token stream.
 - source_
str_ to_ stream  - unwrap_
or_ emit_ fatal  - utf8_
error