1 个不稳定版本
使用旧的 Rust 2015
0.1.0 | 2019年3月8日 |
---|
在 编程语言 中排名 #1153
35KB
762 行
jcompiler
用于 J 编程语言的编译器。
文档
主分支的最新 API 参考文档在此处提供:链接.
用法
您需要安装 LLVM 和 Rust。
$ cargo build --release
然后您可以根据以下步骤编译和运行程序
$ target/release/jcompiler j_examples/test.ijs
$ ./test
Hello World!
默认情况下,jcompiler 将程序编译为当前机器上可运行的可执行文件。您可以使用 LLVM 目标三元组显式指定架构
$ target/release/jcompiler j_examples/test.ijs --target=x86_64-pc-linux-gnu
运行测试
$ cargo test
待办事项
- 将
integration_tests.sh
移至src/tests/compiler_tests.rs
。 - 改进解析器/编译器错误消息(特别是使用
ansi_term
包)。 - 使用内联 rustdoc 注释详细说明库代码,并在可访问的 URL 上公开托管。
- 将 crates.io 和文档图标添加到 README.md。
- 为 GitHub 上的每个标记版本添加预编译的二进制文件。
依赖关系
~6–8MB
~142K SLoC