hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
cmodule.H
Go to the documentation of this file.
1 
2 #ifndef HOBBES_EVAL_CMODULE_HPP_INCLUDED
3 #define HOBBES_EVAL_CMODULE_HPP_INCLUDED
4 
5 #include <hobbes/eval/func.H>
6 #include <hobbes/lang/module.H>
7 
8 namespace hobbes {
9 
10 class cc;
11 
12 // import a "module", possibly from a .so, script, package, ...
13 void import(cc*, const std::string&);
14 
15 // modify the module search stack (imports will be tried in LIFO order)
16 void pushModuleDir(const std::string&);
17 void popModuleDir();
18 
19 // compile a whole module into a cc context
20 void compile(cc*, const ModulePtr& m);
21 
22 }
23 
24 #endif
void pushModuleDir(const std::string &)
Definition: cmodule.C:58
Definition: boot.H:7
void popModuleDir()
Definition: cmodule.C:59
std::shared_ptr< Module > ModulePtr
Definition: module.H:171
LexicalAnnotation m(const YYLTYPE &p)
Definition: hexpr.parse.C:127
void compile(cc *, const ModulePtr &m)
Definition: cmodule.C:301