Skip to content
/ kot Public

Kot is a minimalist imperative language and a compiler of the same name.

License

Notifications You must be signed in to change notification settings

jmalena/kot

Repository files navigation

kot

Kot is a minimalist imperative language and a compiler of the same name.

Usage

To display available command-line options of the Kot compiler:

kotc --help

To compile a Kot program from a source file:

kotc path/to/file.kot

This will outputs object file a.o and LLVM IR a.ll of the compiled source file.

Building From Source

Requirements: GHC 8 or later, LLVM 9

Using Nix

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 build

Using Homebrew

Install LLVM 9:

brew install llvm-hs/llvm/llvm-9

Ensure you are using GHC 8 or later and build the project:

cabal build

Contributing

Contributions, ideas, and bug reports are welcome! Feel free to open issues or submit pull requests.

License

Kot language and compiler are licensed under the MIT License.

About

Kot is a minimalist imperative language and a compiler of the same name.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published