mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-30 23:27:39 +00:00
Update lex.rs
This commit is contained in:
parent
82bf4f486a
commit
dfb7537f1e
1 changed files with 6 additions and 2 deletions
|
@ -69,7 +69,11 @@ impl Runnable for LexerRunner {
|
|||
let ts = lexer
|
||||
.lex()
|
||||
.map_err(|errs| LexerRunnerErrors::convert(self.input(), errs))?;
|
||||
println!("{ts}");
|
||||
if cfg!(feature = "debug") {
|
||||
println!("{ts:?}");
|
||||
} else {
|
||||
println!("{ts}");
|
||||
}
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
|
@ -79,7 +83,7 @@ impl Runnable for LexerRunner {
|
|||
let ts = lexer
|
||||
.lex()
|
||||
.map_err(|errs| LexerRunnerErrors::convert(self.input(), errs))?;
|
||||
println!("{ts}");
|
||||
println!("{ts:?}");
|
||||
Ok(ts.to_string())
|
||||
} else {
|
||||
Ok(lexer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue