Differences From Artifact [e950d5b14cc365fe]:
- File
polemy/ast.d
- 2010-11-11 02:40:08 - part of checkin [8e6fa743ee] on branch trunk - added layered parameter AST (only AST. no parser and no evaluator). (user: kinaba) [annotate]
To Artifact [239622603e376c11]:
- File
polemy/ast.d
- 2010-11-12 04:40:33 - part of checkin [a7b5d1d95a] on branch trunk - refactored the parser, and added layerd params fun(x @t){...} (user: kinaba) [annotate]
97 auto fun(string[] xs, AST ps) { 97 auto fun(string[] xs, AST ps) {
98 return genEast!FunLiteral(array(map!((string x){return new Param 98 return genEast!FunLiteral(array(map!((string x){return new Param
99 auto funp(Parameter[] xs, AST ps) { return genEast!FunLiteral(xs,ps); } 99 auto funp(Parameter[] xs, AST ps) { return genEast!FunLiteral(xs,ps); }
100 alias genEast!VarExpression var; /// 100 alias genEast!VarExpression var; ///
101 alias genEast!LayeredExpression lay; /// 101 alias genEast!LayeredExpression lay; ///
102 alias genEast!LetExpression let; /// 102 alias genEast!LetExpression let; ///
103 alias genEast!FuncallExpression call; /// 103 alias genEast!FuncallExpression call; ///
> 104 auto param(string name, string[] lay...) { return new Parameter(name, la
104 } 105 }