Scope module finished. Types module included &done

This commit is contained in:
2021-05-03 17:07:31 +02:00
parent 6923bec289
commit d20663ac7e
5 changed files with 166 additions and 34 deletions

14
scope.h
View File

@@ -1,8 +1,16 @@
#pragma once
#include <string>
#include <stdint.h>
void scope_init();
void scope_open_local();
void scope_close_local();
const int scope_declare_variable(const std::string name, const int type, const int length);
//scope_get_variable...
const int scope_close_local();
void scope_open_block();
void scope_close_block();
const uint32_t scope_declare_variable(const std::string name, const int type, const int length);
const bool scope_variable_exists(const std::string name);
const uint32_t scope_get_variable_address();
const int scope_get_variable_size();
const int scope_get_variable_type();