identify_tokens: Use Display
on token Data
This commit is contained in:
parent
8b1a1534f3
commit
0e917837c0
@ -59,7 +59,7 @@ fn lex_tokens(file: &str, path: Option<&Path>) -> Result<(), Box<dyn Error>> {
|
|||||||
|
|
||||||
fn print_token(t: conlang::token::Token) {
|
fn print_token(t: conlang::token::Token) {
|
||||||
println!(
|
println!(
|
||||||
"{:02}:{:02}: {:#19} │{:?}│",
|
"{:02}:{:02}: {:#19} │{}│",
|
||||||
t.line(),
|
t.line(),
|
||||||
t.col(),
|
t.col(),
|
||||||
t.ty(),
|
t.ty(),
|
||||||
|
Loading…
Reference in New Issue
Block a user