fix(checker/checker): set the printing function
This commit is contained in:
parent
0579e68ab8
commit
2fd50bf460
1 changed files with 8 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue