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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lex_only) {
|
|
||||||
print_lex_token(tok);
|
print_lex_token(tok);
|
||||||
|
|
||||||
|
if (lex_only) {
|
||||||
ivy_token_destroy(tok);
|
ivy_token_destroy(tok);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,8 +66,9 @@ int repl(const b_command *cmd, const b_arglist *args, const b_array *_)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lex_only) {
|
|
||||||
print_lex_token(tok);
|
print_lex_token(tok);
|
||||||
|
|
||||||
|
if (lex_only) {
|
||||||
ivy_token_destroy(tok);
|
ivy_token_destroy(tok);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user