Add labels to expressions instead of referring to line numbers.
like "insert label"
Then we allow "jmp to label" and a way to get all possible labels.
A label can be an int, but if the label appears twice, then use the first one or something or can force the label to be unique.
Reason:
If we have 6 expressions and jmp, and we insert expression a relative jmp will be screwed up because there are 7 expressions now
so insertion will break the jmp and so on.
but if we have a "jmp to label" then insertion will be fine.
Add labels to expressions instead of referring to line numbers.
like "insert label"
Then we allow "jmp to label" and a way to get all possible labels.
A label can be an int, but if the label appears twice, then use the first one or something or can force the label to be unique.
Reason:
If we have 6 expressions and jmp, and we insert expression a relative jmp will be screwed up because there are 7 expressions now
so insertion will break the jmp and so on.
but if we have a "jmp to label" then insertion will be fine.