Correct scope of operator calls

- Enhance reflection module to indicate inheritance
  - Add ability to catch errors thrown from a eval
    inside of a script
This commit is contained in:
Jason Turner
2012-05-24 19:25:29 -06:00
parent f65e095e4d
commit 4233d21e5b
5 changed files with 42 additions and 17 deletions

View File

@@ -49,6 +49,7 @@ CHAISCRIPT_MODULE_EXPORT chaiscript::ModulePtr create_chaiscript_module_reflect
m->add(chaiscript::fun(&has_parse_tree), "has_parse_tree");
m->add(chaiscript::fun(&get_parse_tree), "get_parse_tree");
m->add(chaiscript::base_class<std::exception, chaiscript::exception::eval_error>());
chaiscript::bootstrap::standard_library::vector_type<std::vector<boost::shared_ptr<chaiscript::AST_Node> > >("AST_NodeVector", m);