mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
336a934d18
* Closes #2032. * Adds the `juvix dev core normalize` command. * Adds the `:n` command in JuvixCore REPL. * Adds the `--normalize` flag to `juvix dev core read` and `juvix dev core from-concrete`. * Adds `pipeline-normalize` which denotes pipeline steps necessary before normalization. * Adds normalization tests in `tests/VampIR/positive/Core`.
24 lines
850 B
Haskell
24 lines
850 B
Haskell
module Commands.Dev.Core where
|
|
|
|
import Commands.Base
|
|
import Commands.Dev.Core.Asm as Asm
|
|
import Commands.Dev.Core.Compile as Compile
|
|
import Commands.Dev.Core.Eval as Eval
|
|
import Commands.Dev.Core.FromConcrete as FromConcrete
|
|
import Commands.Dev.Core.Normalize as Normalize
|
|
import Commands.Dev.Core.Options
|
|
import Commands.Dev.Core.Read as Read
|
|
import Commands.Dev.Core.Repl as Repl
|
|
import Commands.Dev.Core.Strip as Strip
|
|
|
|
runCommand :: forall r. (Members '[Embed IO, App] r) => CoreCommand -> Sem r ()
|
|
runCommand = \case
|
|
Repl opts -> Repl.runCommand opts
|
|
Eval opts -> Eval.runCommand opts
|
|
Normalize opts -> Normalize.runCommand opts
|
|
Read opts -> Read.runCommand opts
|
|
FromConcrete opts -> FromConcrete.runCommand opts
|
|
Strip opts -> Strip.runCommand opts
|
|
CoreAsm opts -> Asm.runCommand opts
|
|
CoreCompile opts -> Compile.runCommand opts
|