Mercurial > projects > dang
comparison parser/Action.d @ 158:57b0b4464a0b
Parsing "new", putting it in AST and performs some tests on it. Eg. if the contructor exists and the params matches.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 22 Jul 2008 00:33:58 +0200 |
parents | ee202c72cd30 |
children | 01c2c49775ef |
comparison
equal
deleted
inserted
replaced
157:bb01c1dc452a | 158:57b0b4464a0b |
---|---|
384 } | 384 } |
385 | 385 |
386 /** | 386 /** |
387 Called when function calls are encountered. | 387 Called when function calls are encountered. |
388 */ | 388 */ |
389 ExprT actOnIndexEpr(ExprT array, ref Token left_bracket, ExprT index, | 389 ExprT actOnIndexExpr(ExprT array, ref Token left_bracket, ExprT index, |
390 ref Token right_bracket) | 390 ref Token right_bracket) |
391 { | 391 { |
392 return null; | 392 return null; |
393 } | 393 } |
394 | 394 |
395 /** | 395 /** |
396 Cast expression. | 396 Cast expression. |
397 */ | 397 */ |
398 ExprT actOnCastExpr(ref Token _cast, Id type, ExprT exp) | 398 ExprT actOnCastExpr(ref Token _cast, Id type, ExprT exp) |
399 { | |
400 return null; | |
401 } | |
402 | |
403 /** | |
404 New expression. | |
405 */ | |
406 ExprT actOnNewExpr(ref Id type, ExprT[] a_args, ExprT[] c_args) | |
399 { | 407 { |
400 return null; | 408 return null; |
401 } | 409 } |
402 } | 410 } |
403 | 411 |