mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-27 01:49:15 +03:00
b244a4223c
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`. |
||
---|---|---|
.. | ||
autoplay-tutorials.sh | ||
benchmark-against-parent.sh | ||
compare-format.sh | ||
enforce-todo-issues.sh | ||
play.sh | ||
reformat-code.sh | ||
regenerate-schema-docs.sh | ||
run-tests.sh | ||
validate-json-schemas.sh | ||
view-haddocks.sh |