Kot is a minimalist imperative language and a compiler of the same name.
To display available command-line options of the Kot compiler:
kotc --helpTo compile a Kot program from a source file:
kotc path/to/file.kotThis will outputs object file a.o and LLVM IR a.ll of the compiled source file.
Requirements: GHC 8 or later, LLVM 9
Note
On aarch64-darwin (Apple Silicon), a lot of libraries must be built from source because prebuilt binary for LLVM 9 is not available for this platform.
Build with:
nix buildInstall LLVM 9:
brew install llvm-hs/llvm/llvm-9Ensure you are using GHC 8 or later and build the project:
cabal buildContributions, ideas, and bug reports are welcome! Feel free to open issues or submit pull requests.
Kot language and compiler are licensed under the MIT License.