Files
jailbasic/scope.h
Raimon Zamora 287bf565bd [FEAT] Implemented 'if' support
[BUG] Variables inside blocks couldn't shadow those outside
[FEAT] Decompiler shows address of each opcode
2021-05-05 15:16:57 +02:00

18 lines
519 B
C++

#pragma once
#include <string>
#include <stdint.h>
void scope_init();
const bool scope_is_local();
void scope_open_local();
const int scope_close_local();
void scope_open_block();
void scope_close_block();
const int scope_declare_variable(const std::string name, const uint32_t type, const uint32_t length);
const bool scope_variable_exists(const std::string name, const bool can_shadow = false);
const uint32_t scope_get_variable_address();
const int scope_get_variable_size();
const int scope_get_variable_type();