frontend: always print lex tokens when compiling file or repl input
This commit is contained in:
@@ -61,8 +61,9 @@ static int compile_file(const char *path, const b_arglist *args)
|
||||
break;
|
||||
}
|
||||
|
||||
print_lex_token(tok);
|
||||
|
||||
if (lex_only) {
|
||||
print_lex_token(tok);
|
||||
ivy_token_destroy(tok);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -66,8 +66,9 @@ int repl(const b_command *cmd, const b_arglist *args, const b_array *_)
|
||||
continue;
|
||||
}
|
||||
|
||||
print_lex_token(tok);
|
||||
|
||||
if (lex_only) {
|
||||
print_lex_token(tok);
|
||||
ivy_token_destroy(tok);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user