diff options
Diffstat (limited to '')
-rw-r--r-- | src/scriptengine.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/scriptengine.h b/src/scriptengine.h new file mode 100644 index 0000000..74924d6 --- /dev/null +++ b/src/scriptengine.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef SCRIPT_ENGINE_H | ||
2 | #define SCRIPT_ENGINE_H | ||
3 | |||
4 | #include "number.h" | ||
5 | |||
6 | #include <bu/hash.h> | ||
7 | #include <bu/list.h> | ||
8 | #include <bu/string.h> | ||
9 | |||
10 | |||
11 | namespace Bu | ||
12 | { | ||
13 | class Stream; | ||
14 | } | ||
15 | class Expression; | ||
16 | |||
17 | class ScriptEngine | ||
18 | { | ||
19 | public: | ||
20 | ScriptEngine(); | ||
21 | virtual ~ScriptEngine(); | ||
22 | |||
23 | Number exec( const Bu::String &sExpr ); | ||
24 | Number exec( Bu::Stream &sInput ); | ||
25 | Number exec( Expression *pExpr ); | ||
26 | |||
27 | private: | ||
28 | typedef Bu::Hash<Bu::String, Number> VarHash; | ||
29 | typedef Bu::List<Number> NumStack; | ||
30 | VarHash hVarState; | ||
31 | }; | ||
32 | |||
33 | #endif | ||