case.f

This source file contains words for creating Forths version of a switch statement which in Forth is called a case statement. IsForth does not use the same case constructs that other Forths use because in my opinion they encourage some very poor programming practices.

In IsForth, each case within the statement must be factored out. You can not compile huge amounts of code inline with each case. Im not a huge fan of having coimpilers enforce any kind of rules on the user but this is one of the very few places where I do. While I am enforcing good practices here you as the user are under no obligation to use this version of a Forth case construct.

These words are used to create case statements. The code to execute them is contained within the kernel in file exec.1