comparison ast/Stmt.d @ 126:c3b24e7e8cf8

Carius changes to the parser. Parsing attributes, lexing many keywords(not all yet).
author Anders Johnsen <skabet@gmail.com>
date Tue, 27 May 2008 10:32:31 +0200
parents 3a0cd42de9cc
children a22e3663de89
comparison
equal deleted inserted replaced
125:d604152de1eb 126:c3b24e7e8cf8
69 exp.simplify; 69 exp.simplify;
70 if(f !is null && f.sret) 70 if(f !is null && f.sret)
71 { 71 {
72 auto i = new Identifier("ret.val"); 72 auto i = new Identifier("ret.val");
73 i.env = f.env; 73 i.env = f.env;
74 auto ass = new AssignExp(SLoc.Invalid, i, exp); 74 auto ass = new AssignExp(SLoc.Invalid, BinaryExp.Operator.Assign, i, exp);
75 ass.env = f.env; 75 ass.env = f.env;
76 auto assStmt = new ExpStmt(ass); 76 auto assStmt = new ExpStmt(ass);
77 assStmt.env = f.env; 77 assStmt.env = f.env;
78 78
79 Stmt[] stmts; 79 Stmt[] stmts;