comparison trunk/src/Expressions.d @ 130:0467f01ed524

- Fix: parameters can have optional identifier. - Added code for parsing delegates of type ( ArgumentList ) FunctionBody. - Added class FunctionType. - Added class FunctionLiteralExpression.
author aziz
date Tue, 10 Jul 2007 16:49:01 +0000
parents 469188935d56
children 3924b1ee1302
comparison
equal deleted inserted replaced
129:a9244d409652 130:0467f01ed524
3 License: GPL2 3 License: GPL2
4 +/ 4 +/
5 module Expressions; 5 module Expressions;
6 import Token; 6 import Token;
7 import Types; 7 import Types;
8 import Declarations;
8 9
9 class Expression 10 class Expression
10 { 11 {
11 12
12 } 13 }
535 this.type = type; 536 this.type = type;
536 this.ident = ident; 537 this.ident = ident;
537 this.specType = specType; 538 this.specType = specType;
538 } 539 }
539 } 540 }
541
542 class FunctionLiteralExpression : Expression
543 {
544 FunctionType func;
545 Declaration[] decls;
546 this(FunctionType func, Declaration[] decls)
547 {
548 this.func = func;
549 this.decls = decls;
550 }
551 }