summaryrefslogtreecommitdiff
path: root/i/marvin/src/interpreter/interpreter.hh
diff options
context:
space:
mode:
authorschodet2006-04-11 19:08:35 +0000
committerschodet2006-04-11 19:08:35 +0000
commitaa023b1a9f1a84323a81c8674d46a1d5a0d39629 (patch)
treec1a39a1ddd0f13432c1a26c3cefab41ec4bdb9ef /i/marvin/src/interpreter/interpreter.hh
parentfe8085484038b83d431459ac7fc3980cbbac9137 (diff)
Correction d'une erreur dans le bad_any_cast.
Ajout du support de la notation exponentielle dans le parser. Ajout du support du parser dans l'interpreter.
Diffstat (limited to 'i/marvin/src/interpreter/interpreter.hh')
-rw-r--r--i/marvin/src/interpreter/interpreter.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/i/marvin/src/interpreter/interpreter.hh b/i/marvin/src/interpreter/interpreter.hh
index 169e0f2..4164c28 100644
--- a/i/marvin/src/interpreter/interpreter.hh
+++ b/i/marvin/src/interpreter/interpreter.hh
@@ -63,6 +63,10 @@ class Interpreter
/// Call a function by name.
void call (const std::string &s, const Args &a,
bool dryrun = false) const;
+ /// Interpret a string.
+ void interpretString (const std::string &s, bool dryrun = false);
+ /// Interpret a file.
+ void interpretFile (const std::string &file, bool dryrun = false);
/// Take all the template sophistications out of the programmer hands.
template<class T, typename F>
static Func *memFunc (T &i, F f);