The source repository of the Core Programming Language implementation. Works on Linux, Windows and macOS (x86_64 and aarch64).
The source repository of the Core Programming Language website can be found here.
Install Rust through rustup.rs.
# build in debug and release mode
cargo build && cargo build --release
## Testing
The test runner is implemented in [Ruby](https://www.ruby-lang.org/) and therefore a Ruby interpreter needs to be installed on your system (e.g. `brew/dnf/apt install ruby`).
# run all tests in debug and release mode (needs Ruby)
tools/test && tools/test-release # Linux and macOS
tools/test.bat && tools/test-release.bat # Windows
The standard library (stdlib) is included into the core
-binary at compile time.
Changing the stdlib therefore requires recompiling Core, even though the stdlib is written in Core.
In order to avoid this recompilation when working on the stdlib, simply pass your working directory of the stdlib to Core using the --stdlib
argument.
With this parameter, Core loads the stdlib from the specified directory instead of the one bundled in the executable.
Core is derived from the Dora programming language, created by its contributors. It would not exist without the groundwork laid in the Dora project. Thanks to all contributors!
The Core Programming Language is licensed under a mix of MIT and MPL-2.0, as follows:
-
Contributions derived from Dora are licensed under Dora's MIT license.
-
Contributions made to this repository are licensed under the MPL-2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MPL-2.0 license, shall be licensed under the MPL-2.0 license, without any additional terms or conditions.