Some declaration guards

This commit is contained in:
2022-08-15 03:12:10 +01:00
parent 4cda75df11
commit 8d12db7dbe
4 changed files with 26 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ Scope* popScope(Scope* scope);
//returns false if error
bool declareScopeVariable(Scope* scope, Literal key, Literal type);
bool isDelcaredScopeVariable(Scope* scope, Literal key);
//return false if undefined
bool setScopeVariable(Scope* scope, Literal key, Literal value);