jcompiler

Crates.iojcompiler
lib.rsjcompiler
version0.1.0
sourcesrc
created_at2019-03-08 04:11:50.3152
updated_at2019-03-08 04:11:50.3152
descriptiona compiler for the J programming language
homepagehttps://github.com/mattjquinn/jcompiler
repositoryhttps://github.com/mattjquinn/jcompiler
max_upload_size
id119431
size40,254
Matt Quinn (mattjquinn)

documentation

README

jcompiler

Build Status Coverage Status lines of code

A compiler for the J programming language.

Documentation

The latest API reference for the master branch is available here.

Usage

You will need LLVM and Rust installed.

$ cargo build --release

You can then compile and run programs as follows:

$ target/release/jcompiler j_examples/test.ijs
$ ./test
Hello World!

By default, jcompiler compiles programs to executables that run on the current machine. You can explicitly specify architecture using LLVM target triples:

$ target/release/jcompiler j_examples/test.ijs --target=x86_64-pc-linux-gnu

Running tests

$ cargo test

TODO

  • Move integration_tests.sh to src/tests/compiler_tests.rs.
  • Improve parser/compiler error messages (especially using ansi_term crate).
  • Thoroughly document library code using inline rustdoc comments, publicly host at accessible URL.
  • Add crates.io, docs icons to README.md.
  • Add precompiled binaries for each tagged release in GitHub.
Commit count: 279

cargo fmt