Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
translate.hh
Go to the documentation of this file.
1 #ifndef VCSN_DYN_TRANSLATE_HH
2 # define VCSN_DYN_TRANSLATE_HH
3 
4 # include <stdexcept>
5 # include <string>
6 
7 # include <vcsn/misc/fwd.hh>
8 
9 namespace vcsn
10 {
11  namespace dyn
12  {
14  struct jit_error: std::runtime_error
15  {
16  jit_error(const std::string& assert, const std::string& what);
18  std::string assertions;
19  };
20 
22  void compile(const std::string& ctx);
23 
25  void compile(const std::string& algo, const signature& sig);
26 
27  } // namespace dyn
28 } // namespace vcsn
29 
30 #endif // !VCSN_DYN_TRANSLATE_HH
An exception suited for our compilation errors.
Definition: translate.hh:14
void compile(const std::string &ctx)
Compile, and load, a DSO with instantiations for ctx.
Definition: translate.cc:337
Signature of a function call.
Definition: signature.hh:14
jit_error(const std::string &assert, const std::string &what)
Definition: translate.cc:31
std::string assertions
If defined, static assertions that failed (ends with a eol).
Definition: translate.hh:18