1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Self-compiler can compile splats.

This commit is contained in:
Jeremy Ashkenas 2010-02-09 21:44:34 -05:00
parent ae4f6309e8
commit fd80d784f4
4 changed files with 41 additions and 4 deletions

View file

@ -196,8 +196,8 @@
// A Parameter (or ParamSplat) in a function definition.
Param: [o("PARAM", function() {
return yytext;
}), o("PARAM . . .", function() {
return new SplatNode(yytext);
}), o("Param . . .", function() {
return new SplatNode($1);
})
],
// A regular splat.