Module python_ast::fmt [] [src]

Format python_ast types as pretty printable strings

Functions

json

Take some input that implements serde::Serialize and convert it to pretty json format.

token

Take a token and output it in tabular format using text alignments for debugging. The string will take the form: Id String Tag

tokens

Like fmt::token except take a slice of tokens. optionally filtering the spaces, and join the result of the calls to fmt::token with the index of the token and a newlines to get a big token table.