corth-lang / Corth

A self-hosted stack based language like Forth
MIT License
7 stars 1 forks source link

Removing `branch-active` #51

Closed HuseyinSimsek7904 closed 6 months ago

HuseyinSimsek7904 commented 6 months ago

branch-active is a terrible way to implement the rule to check unreachable code. Instead, a new procedure that checks tokens that come after an impossible branch should be implemented which will make it possible to remove all the checks of "branch activity" in compile-procedure.