almost finished implementing sema
This commit is contained in:
parent
8b4b81e90b
commit
463ba71843
8 changed files with 380 additions and 43 deletions
6
lc.c
6
lc.c
|
|
@ -123,12 +123,6 @@ void print_ast(ast_node *node, int depth) {
|
|||
current = current->expr.unit_node.next;
|
||||
}
|
||||
break;
|
||||
case NODE_COMPOUND:
|
||||
printf("Block\n");
|
||||
for (usize i = 0; i < node->expr.compound.stmt_len; ++i) {
|
||||
print_ast(node->expr.compound.statements[i], depth + 1);
|
||||
}
|
||||
break;
|
||||
case NODE_CALL:
|
||||
printf("Call: %.*s\n", (int)node->expr.call.name_len, node->expr.call.name);
|
||||
current = node->expr.call.parameters;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue