diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-02-10 23:35:02 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-02-10 23:35:02 +0100 |
commit | ca45da0925cabc3bbf0d22d5d23ccb9a25d8e228 (patch) | |
tree | b96cb309d210e62deccdebfcc5646cfa2f3cb384 /ast.cpp | |
parent | 269f28df980f34895c3c7181140963b4a86a1afc (diff) |
Preliminary 'compiling'
Diffstat (limited to 'ast.cpp')
-rw-r--r-- | ast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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<<')'; } |