Module python_ast::parser [] [src]

Take a slice of tokens TkSlice and convert it into an Ast.

Modules

internal

Structs

ParsedAst

Wraps an Ast to give extra debug information when bits hit the fan

Parser

Create a Python AST from slice of Tokens created from the lexer::Lexer.

ParserState

Enums

ParserError

The custom result that happens when the parser is unable to parse a nested expression.

ParserResult

The result type returned by Parser. Both Ok and Error variants contain an instance of ParsedAst. Ok variants are considered to be the case where the TkSlice was fully consumed.

Constants

IS_NOT_BYTES
IS_NOT_TKSLICE
_IMPL_SERIALIZE_FOR_ParsedAst
_IMPL_SERIALIZE_FOR_Parser
_IMPL_SERIALIZE_FOR_ParserResult
_IMPL_SERIALIZE_FOR_ParserState