summaryrefslogtreecommitdiff
path: root/ast.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-02-10 23:35:02 +0100
committertomsmeding <tom.smeding@gmail.com>2017-02-10 23:35:02 +0100
commitca45da0925cabc3bbf0d22d5d23ccb9a25d8e228 (patch)
treeb96cb309d210e62deccdebfcc5646cfa2f3cb384 /ast.cpp
parent269f28df980f34895c3c7181140963b4a86a1afc (diff)
Preliminary 'compiling'
Diffstat (limited to 'ast.cpp')
-rw-r--r--ast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.cpp b/ast.cpp
index b57b5ef..e1abf81 100644
--- a/ast.cpp
+++ b/ast.cpp
@@ -45,7 +45,7 @@ ostream& operator<<(ostream &os,Site site){
ScopeDef::ScopeDef():type(Type::direct){}
-ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Expression> &args)
+ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Name> &args)
:type(type),body(body),args(args){}
/*ScopeDef::ScopeDef(Type type,const StatementList &body,const vector<Name> &nameargs)
:type(type),body(body){
@@ -67,10 +67,10 @@ ostream& operator<<(ostream &os,const ScopeDef &scope){
if(scope.args.size()!=0){
os<<'(';
bool first=true;
- for(const Expression &ex : scope.args){
+ for(const Name &name : scope.args){
if(!first)os<<", ";
else first=false;
- os<<ex;
+ os<<name;
}
os<<')';
}