| 19 | } |
| 20 | |
| 21 | static value_string exec_statements(const statements & stmts, context & ctx) { |
| 22 | auto result = mk_val<value_array>(); |
| 23 | for (const auto & stmt : stmts) { |
| 24 | JJ_DEBUG("Executing statement of type %s", stmt->type().c_str()); |
| 25 | result->push_back(stmt->execute(ctx)); |
| 26 | } |
| 27 | // convert to string parts |
| 28 | value_string str = mk_val<value_string>(); |
| 29 | gather_string_parts_recursive(result, str); |
| 30 | return str; |
| 31 | } |
| 32 | |
| 33 | static std::string get_line_col(const std::string & source, size_t pos) { |
| 34 | size_t line = 1; |
no test coverage detected