fix(checker/checker): set the printing function

This commit is contained in:
Gabriel Ebner 2017-07-14 21:45:39 +01:00
parent 0579e68ab8
commit 2fd50bf460

View file

@ -110,6 +110,14 @@ int main(int argc, char ** argv) {
}
} initer;
set_print_fn([] (std::ostream & out, expr const & e) {
try {
out << simple_pp(environment(), e, lowlevel_notations());
} catch (throwable & e) {
out << "!!!" << e.what() << "!!!";
}
});
try {
std::ifstream in(argv[1]);
if (!in) throw exception(sstream() << "file not found: " << argv[1]);