- Install GHCup: https://www.haskell.org/ghcup/install/
- Run the REPL:
cabal repl - Run the parser:
runParser "<path_to_spl_file>" - Run the type checker:
runTypeChecker "<path_to_spl_file>" - Run the compiler:
runCompiler "<path_to_spl_file>"
Some SPL files that show off the capabilities of the parser and type checker are listed in test/
Alternatively, you can also download the binary from the CI artifacts, and run it with a file path as an argument.
There is also a shell file compile, that takes a file name (without file extension) as an argument,
runs the compiler on that file, and then runs clang on the generated LLVM file.