Skip to main content

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.span.path, t.span.head, t.kind, t.lexeme,
7    )
8}