Struct python_ast::parser::ParsedAst
[−]
[src]
pub struct ParsedAst { pub ast: Ast, pub p1_tokens: Vec<OwnedTk>, pub p2_tokens: Vec<OwnedTk>, pub remaining_tokens: Vec<OwnedTk>, }
Wraps an Ast
to give extra debug information when bits hit the fan
Fields
ast: Ast
This is your father's Ast. An elegant representation for a more civilized compilation.
p1_tokens: Vec<OwnedTk>
Tokens received by the parser
p2_tokens: Vec<OwnedTk>
The tokens after the first phase of pre processing
remaining_tokens: Vec<OwnedTk>
Tokens that were not consumed by the parser. Useful to debug where the parsing stopped.
Methods
impl ParsedAst
[src]
fn new<'a>(
ast: Option<&Ast>,
remaining: Option<TkSlice<'a>>,
p1_tokens: TkSlice<'a>,
p2_tokens: &'a [Tk<'a>]
) -> Self
ast: Option<&Ast>,
remaining: Option<TkSlice<'a>>,
p1_tokens: TkSlice<'a>,
p2_tokens: &'a [Tk<'a>]
) -> Self
Trait Implementations
impl Debug for ParsedAst
[src]
impl Clone for ParsedAst
[src]
fn clone(&self) -> ParsedAst
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more