From ca45da0925cabc3bbf0d22d5d23ccb9a25d8e228 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 10 Feb 2017 23:35:02 +0100 Subject: Preliminary 'compiling' --- ast.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ast.cpp') 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 &args) +ScopeDef::ScopeDef(Type type,const StatementList &body,const vector &args) :type(type),body(body),args(args){} /*ScopeDef::ScopeDef(Type type,const StatementList &body,const vector &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<