Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Both `execConst` and `stepCESK` are huge case statements. This refactor puts them in different modules. Also many supporting functions for implementing commands in `execConst` are moved to their own modules. Whereas `Step.hs` previously had `2931` lines, the new linecounts are: | File | lines | | --- | --- | | `Step.hs` | 848 | | `Arithmetic.hs` | 124 | | `Const.hs` | 1687 | | `Command.hs` | 417 | The only tricky thing was that `execConst` is mutually recursive with `runCESK`. So to get them into different modules, I pass a wrapper of `runCESK` as an argument to `execConst`.
- Loading branch information