I like to use the following command with a file watcher as a way to get quick feedback on my changes: ./cc.sh test.c > test.sh && test.sh. Unfortunately, not all errors were thrown with status code 1, making this difficult to use.
This PR replaces the all calls to exit to missing_feature_error and redirects its error message (along with the error message of syntax_error) to stderr and adds some basic how-to-run instructions to the README.
Context
I like to use the following command with a file watcher as a way to get quick feedback on my changes:
./cc.sh test.c > test.sh && test.sh
. Unfortunately, not all errors were thrown with status code 1, making this difficult to use.This PR replaces the all calls to
exit
tomissing_feature_error
and redirects its error message (along with the error message ofsyntax_error
) to stderr and adds some basic how-to-run instructions to the README.