[][src]Module rustpython_parser::parser

Python parsing.

Use this module to parse python code into an AST. There are three ways to parse python code. You could parse a whole program, a single statement, or a single expression.

Re-exports

pub use crate::mode::Mode;

Functions

parse
parse_expression

Parses a python expression

parse_program

Parse a full python program, containing usually multiple lines.

parse_statement

Parse a single statement.