Added commands for printing to console and error generation.

Errors now print to stderr
This commit is contained in:
2014-06-21 23:06:18 +01:00
parent f2c8dc167c
commit 437e1d21da
5 changed files with 31 additions and 11 deletions

2
lang.c
View File

@@ -10,7 +10,7 @@ mpc_ast_t* tokenize(char *input) {
if (!mpc_parse("<stdin>", input,gLispy, &result)) {
success = 0;
mpc_err_print(result.error);
mpc_err_print_to(result.error, stderr);
mpc_err_delete(result.error);
}