Clean up label generation

Only check for localness when we already know we have a local
This commit is contained in:
ISSOtm
2020-10-03 21:33:30 +02:00
parent f53ad359a6
commit 2e3db9d56a
8 changed files with 161 additions and 129 deletions

9
test/asm/sym-scope.err Normal file
View File

@@ -0,0 +1,9 @@
ERROR: sym-scope.asm(4):
Local label '.tooSoon' in main scope
ERROR: sym-scope.asm(5):
Local label 'Nice.try' in main scope
ERROR: sym-scope.asm(17):
Not currently in the scope of 'Parentheses.check'
ERROR: sym-scope.asm(21):
Not currently in the scope of 'Parent.check'
error: Assembly aborted (4 errors)!