Initially was working on vargs but we need a new algorithm to match lambda call arguments

This commit is contained in:
Krzosa Karol
2022-06-20 16:23:35 +02:00
parent 9700742515
commit 9f7d51ff02
3 changed files with 11 additions and 3 deletions

View File

@@ -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(":");
}