Initially was working on vargs but we need a new algorithm to match lambda call arguments
This commit is contained in:
@@ -462,6 +462,8 @@ gen_ast(Ast *ast){
|
||||
|
||||
CASE(IF, If){
|
||||
For(node->ifs){
|
||||
gen_line(node);
|
||||
genln("");
|
||||
if(it->init) {
|
||||
gen_expr(it->init);
|
||||
gen(";");
|
||||
@@ -629,7 +631,9 @@ gen_ast(Ast *ast){
|
||||
|
||||
For(node->cases){
|
||||
For_Named(it->labels, label){
|
||||
genln("case ");
|
||||
gen_line(it);
|
||||
genln("");
|
||||
gen("case ");
|
||||
gen_expr(label);
|
||||
gen(":");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user