| 42 | } |
| 43 | |
| 44 | void Program::parse(string filename) |
| 45 | { |
| 46 | if (OnlineOptions::singleton.has_option("throw_exceptions")) |
| 47 | parse_with_error(filename); |
| 48 | else |
| 49 | { |
| 50 | try |
| 51 | { |
| 52 | parse_with_error(filename); |
| 53 | } |
| 54 | catch(exception& e) |
| 55 | { |
| 56 | cerr << "Error in bytecode: " << e.what() << endl; |
| 57 | exit(1); |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void Program::parse_with_error(string filename) |
| 63 | { |
no test coverage detected