cl_repl/
tools.rs

1use cl_token::Token;
2/// Prints a token in the particular way [cl-repl](crate) does
3pub fn print_token(t: &Token) {
4    println!(
5        "{:02}:{:02}: {:#19} │{}│",
6        t.line(),
7        t.col(),
8        t.ty(),
9        t.data(),
10    )
11}