comparison trunk/src/Parser.d @ 292:076152e945e0

- Added member Node[] children to class Node. - Assigning to Node.children in several constructors that inherit from Node.
author aziz
date Thu, 09 Aug 2007 11:13:04 +0000
parents c0e857931ff6
children 418c6548ce17
comparison
equal deleted inserted replaced
291:c0e857931ff6 292:076152e945e0
288 // TODO: Error: module is optional and can appear only once at the top of the source file. 288 // TODO: Error: module is optional and can appear only once at the top of the source file.
289 break;+/ 289 break;+/
290 default: 290 default:
291 // TODO: issue error msg. 291 // TODO: issue error msg.
292 error(MID.ExpectedButFound, "Declaration", token.srcText); 292 error(MID.ExpectedButFound, "Declaration", token.srcText);
293 decl = new IllegalDeclaration(token.type); 293 decl = new IllegalDeclaration(token);
294 nT(); 294 nT();
295 } 295 }
296 // writef("§%s§", decl.classinfo.name); 296 // writef("§%s§", decl.classinfo.name);
297 set(decl, begin); 297 set(decl, begin);
298 return decl; 298 return decl;