From bae6192c54533e8da95d8ae1ed4d4eccee28c39a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 10:27:38 -0700 Subject: Getting close to realy running. --- src/astfunction.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/astfunction.h (limited to 'src/astfunction.h') 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 @@ +#ifndef AST_FUNCTION_H +#define AST_FUNCTION_H + +#include "function.h" + +class AstFunction : public Function +{ +public: + AstFunction( const Bu::String &sName ); + virtual ~AstFunction(); + + virtual Bu::String getName() const { return sName; } + virtual Variable call( const VariableList &lParams ); + + void addParam( const Bu::String &sName ); + void setAst( class AstBranch *pAst ); + +private: + Bu::String sName; + Bu::StringList lParam; + class AstBranch *pAst; +}; + +#endif -- cgit v1.2.3