Open sasq64 opened 1 year ago
On second thought -- it probably should not be supported...
FYI: Trying to access a label that is later defined and then trying to redefine results in fail after max passes.
jsr plot
rts
plot:
nop
rts
plot: ; -> fails; expected "error: already defined label 'plot'"
rts
Note: Addressing this in PR #39
In the PR I have added both tests. Now it becomes pretty clear that the undefined.insert()
line in SymbolTyble::set()
is the actual issue. Maybe we can make use of std::any::has_value()
…?
Following ACME as a de-facto standard changing the description slightly will make this goal achievable:
X = 1
!set X = X +1
(obviously ACME also defines symbols constant by default)
Now the bug turns into a feature (request)… :slightly_smiling_face:
Fails after max passes. Should work.