Struct syntax::print::pp::Printer[src]

pub struct Printer {
    pub out: Box<Writer>,
    // some fields omitted
}

Fields

out

Methods

impl Printer

fn last_token(&mut self) -> Token

fn replace_last_token(&mut self, t: Token)

fn pretty_print(&mut self, t: Token) -> IoResult<()>

fn check_stream(&mut self) -> IoResult<()>

fn scan_push(&mut self, x: uint)

fn scan_pop(&mut self) -> uint

fn scan_top(&mut self) -> uint

fn scan_pop_bottom(&mut self) -> uint

fn advance_right(&mut self)

fn advance_left(&mut self, x: Token, l: int) -> IoResult<()>

fn check_stack(&mut self, k: int)

fn print_newline(&mut self, amount: int) -> IoResult<()>

fn indent(&mut self, amount: int)

fn get_top(&mut self) -> PrintStackElem

fn print_str(&mut self, s: &str) -> IoResult<()>

fn print(&mut self, x: Token, l: int) -> IoResult<()>