Implement 1-scope semantics

This commit is contained in:
Peter
2024-08-20 13:08:52 +02:00
parent ad6b7154e1
commit fb713b022b
2 changed files with 7 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ Language "IBAFlang"
Syntax START:start ::= statement*
Semantics start[[ _:start ]] : =>null-type
Rule start[[ Stmt* ]] = initialise-binding execute-block[[ Stmt* ]]
Rule start[[ Stmt* ]] = initialise-binding scope(collateral(collect-declared-vars[[ Stmt* ]]), execute[[ Stmt* ]])