MCPcopy Create free account
hub / github.com/covscript/covscript / interpret

Method interpret

sources/instance/instance.cpp:155–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 void instance_type::interpret()
156 {
157 // Run the instruction
158 for (auto &ptr : statements) {
159 try {
160 ptr->run();
161 }
162 catch (const lang_error &le) {
163 throw fatal_error(std::string("Uncaught exception: ") + le.what());
164 }
165 catch (const cs::exception &e) {
166 throw e;
167 }
168 catch (const std::exception &e) {
169 throw exception(ptr->get_line_num(), ptr->get_file_path(), ptr->get_raw_code(), e.what());
170 }
171 }
172 }
173
174 void instance_type::dump_ast(std::ostream &stream)
175 {

Callers 5

covscript_mainFunction · 0.80
covscript_mainFunction · 0.80
source_importMethod · 0.80
importMethod · 0.80
runMethod · 0.80

Calls 15

fatal_errorClass · 0.85
runtime_errorClass · 0.85
reset_statusFunction · 0.85
match_methodMethod · 0.80
remove_setMethod · 0.80
remove_domainMethod · 0.80
popMethod · 0.80
pushMethod · 0.80
add_domainMethod · 0.80
add_setMethod · 0.80
repl_runMethod · 0.80
utilize_metadataMethod · 0.80

Tested by

no test coverage detected