Skip to content

hzahradnik/dora

 
 

Repository files navigation

Dora

Join the chat at https://gitter.im/dora-lang/dora Actions Status

JIT-compiler for the programming language Dora implemented in Rust. Works on Linux, Windows and macOS (x86_64 and aarch64). Build with:

Dependencies

You need to install these dependencies:

# on Fedora
$ sudo dnf install ruby

# on Ubuntu/Debian
$ sudo apt install ruby

Ruby is used for running tests.

Compilation & Testing

Install Rust nightly through rustup.rs. Use the specific nightly version listed in the rust-toolchain file. Dora simply uses cargo for building:

# build in debug and release mode
cargo build && cargo build --release

# run all tests in debug and release mode
tools/test && tools/test-release # Linux and macOS
tools/test.bat && tools/test-release.bat # Windows

Working on the standard library

The standard library (stdlib) is included into the dora-binary at compile time. Changing the stdlib therefore requires recompiling Dora, even though the stdlib is written in Dora. In order to avoid this recompilation when working on the stdlib, simply pass your working directory of the stdlib to Dora using the --stdlib argument. With this parameter, Dora loads the stdlib from the specified directory instead of the one bundled in the executable.

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.8%
  • JavaScript 1.3%
  • Java 1.0%
  • Ruby 0.5%
  • Shell 0.2%
  • Raku 0.1%
  • Other 0.1%