Started implementation of function parsing

This commit is contained in:
2021-05-04 18:49:18 +02:00
parent 2ff14cd2f1
commit 1516043f17
5 changed files with 144 additions and 22 deletions

View File

@@ -30,6 +30,7 @@ const bool scope_is_local() {
void scope_open_local() {
are_we_inside_local = true;
blocks.push(0);
}
const int scope_close_local() {
@@ -37,6 +38,7 @@ const int scope_close_local() {
// Malament, no havem tancat algún block. No se si es detectarà abans per altra part. Per ara anem a deixar este comentari.
}
const int return_value = local.total_size;
while (!blocks.empty()) blocks.pop();
local.variables.clear();
local.total_size = 0;
are_we_inside_local = false;