Started implementation of function parsing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user