diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 |
| commit | bae6192c54533e8da95d8ae1ed4d4eccee28c39a (patch) | |
| tree | f27b03b518894420992ad1a3ed3ee1a07935ca4b /src/astfunction.h | |
| parent | 550d4f13ace49e3d442e43d46cd066f174709400 (diff) | |
| download | stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.gz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.bz2 stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.xz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.zip | |
Getting close to realy running.
Diffstat (limited to 'src/astfunction.h')
| -rw-r--r-- | src/astfunction.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/astfunction.h b/src/astfunction.h new file mode 100644 index 0000000..e6470e4 --- /dev/null +++ b/src/astfunction.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef AST_FUNCTION_H | ||
| 2 | #define AST_FUNCTION_H | ||
| 3 | |||
| 4 | #include "function.h" | ||
| 5 | |||
| 6 | class AstFunction : public Function | ||
| 7 | { | ||
| 8 | public: | ||
| 9 | AstFunction( const Bu::String &sName ); | ||
| 10 | virtual ~AstFunction(); | ||
| 11 | |||
| 12 | virtual Bu::String getName() const { return sName; } | ||
| 13 | virtual Variable call( const VariableList &lParams ); | ||
| 14 | |||
| 15 | void addParam( const Bu::String &sName ); | ||
| 16 | void setAst( class AstBranch *pAst ); | ||
| 17 | |||
| 18 | private: | ||
| 19 | Bu::String sName; | ||
| 20 | Bu::StringList lParam; | ||
| 21 | class AstBranch *pAst; | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif | ||
