-CYExpression *CYDeclaration::ForEachIn(CYContext &context) {
- return $V(identifier_);
+CYStatement *CYDeclaration::ForEachIn(CYContext &context, CYExpression *value) {
+ return $ CYVar($L1($L(identifier_, value)));
return $ CYLet($L2($L(cys, set_), $L(cyt)), $$->*
$ CYForIn($V(cyt), $V(cys), $ CYBlock($$->*
return $ CYLet($L2($L(cys, set_), $L(cyt)), $$->*
$ CYForIn($V(cyt), $V(cys), $ CYBlock($$->*
- CYArgument **argument(&arguments_);
- while (*argument != NULL)
- argument = &(*argument)->next_;
- *argument = $ CYArgument(value);
+ CYSetLast(arguments_, $ CYArgument(value));
void CYScope::Close() {
context_.scope_ = parent_;
Scope(context_, statements_);
void CYScope::Close() {
context_.scope_ = parent_;
Scope(context_, statements_);