summaryrefslogtreecommitdiff
path: root/src/astfunction.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 10:27:38 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 10:27:38 -0700
commitbae6192c54533e8da95d8ae1ed4d4eccee28c39a (patch)
treef27b03b518894420992ad1a3ed3ee1a07935ca4b /src/astfunction.cpp
parent550d4f13ace49e3d442e43d46cd066f174709400 (diff)
downloadstage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.gz
stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.bz2
stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.xz
stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.zip
Getting close to realy running.
Diffstat (limited to 'src/astfunction.cpp')
-rw-r--r--src/astfunction.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/astfunction.cpp b/src/astfunction.cpp
new file mode 100644
index 0000000..df183d3
--- /dev/null
+++ b/src/astfunction.cpp
@@ -0,0 +1,28 @@
1#include "astfunction.h"
2#include "astbranch.h"
3
4AstFunction::AstFunction( const Bu::String &sName ) :
5 sName( sName ),
6 pAst( NULL )
7{
8}
9
10AstFunction::~AstFunction()
11{
12 delete pAst;
13}
14
15Variable AstFunction::call( const VariableList &lParams )
16{
17}
18
19void AstFunction::addParam( const Bu::String &sName )
20{
21 lParam.append( sName );
22}
23
24void AstFunction::setAst( class AstBranch *pAst )
25{
26 this->pAst = pAst;
27}
28