#esolang #tool #assembly #file-extension #cli-tool #awatalk #awa5

bin+lib awa5_rs

使用 Rust 编写的 AWA5.0 CLI 工具(顺便一提)

14 个版本

0.1.14 2024 年 7 月 30 日
0.1.13 2024 年 7 月 28 日

176编程语言

Download history 489/week @ 2024-07-14 490/week @ 2024-07-21 323/week @ 2024-07-28 4/week @ 2024-08-04 4/week @ 2024-08-11

每月 930 次下载

GPL-3.0-or-later

65KB
1.5K SLoC

AWA5.RS

使用 Rust 编写的 AWA5.0 CLI 工具(顺便一提)

作为 AWA5.0 解释器运行 Awatisms(文件扩展名为 .awasm)和 Awatalk(文件扩展名为 .awa

还可以作为 Awatisms 和 Awatalk 的汇编器运行到目标文件中,并且具有扩展名 .o 的汇编目标文件可以由解释器运行

安装

要安装或从源代码构建,您需要已安装 rustrustup

# using Arch Linux's package manager
$ sudo pacman -S rust # or rustup

如果您已安装 rustup,则需要安装工具链

$ rustup toolchain install latest

使用 Cargo

您可以使用 cargo 从 crates.io 安装

$ cargo install awa5_rs

然后从命令行运行

$ awa5_rs --help

从源代码

或克隆此存储库并使用 cargo 从源代码构建它

$ git clone https://github.com/liraymond04/awa5_rs.git
$ cd awa5_rs
$ cargo build
$ ./target/debug/awa5_rs # you can also build and run with `cargo run`, and you can pass flags with `cargo run -- --help` for example

用法

Usage: awa5_rs [OPTIONS] [input]

Arguments:
  [input]  File to interpret or convert

Options:
  -o, --output <output>  Output to file with new format .awasm .awa .o
  -s, --string <string>  String to interpret or convert
      --awasm            Parse string as awasm
      --awa              Parse string as awatalk
  -p, --path <path>      Search paths separated by ';' for shared libraries
  -i, --include <include>  Include paths separated by ';' for source files
  -h, --help             Print help
  -V, --version          Print version

依赖项

~1.2–6.5MB
~33K SLoC