[−][src]Crate ra_ap_parser
The Rust parser.
The parser doesn't know about concrete representation of tokens and syntax
trees. Abstract TokenSource
and TreeSink
traits are used instead. As a
consequence, this crates does not contain a lexer.
The Parser
struct from the parser
module is a cursor into the sequence
of tokens. Parsing routines use Parser
to inspect current state and
advance the parsing.
The actual parsing happens in the grammar
module.
Tests for this crate live in syntax
crate.
Macros
T |
Structs
ParseError | |
Reparser | A parsing function for a specific braced-block. |
Token |
|
Enums
FragmentKind | |
SyntaxKind | The kind of syntax node, e.g. |
Traits
TokenSource |
|
TreeSink |
|
Functions
parse | Parse given tokens into the given sink as a rust file. |
parse_fragment |