#extended #language #compiler #compile #duckyscript #completion #hak5

bin+lib mallardscript

Hak5 DuckyScript 扩展语言编译器

7个版本 (重大变更)

使用旧的Rust 2015

7.0.0 2023年1月11日
6.0.0 2023年1月11日
5.0.0 2023年1月11日
4.0.0 2023年1月5日
1.0.0 2023年1月3日

编程语言 中排名第822

每月下载量25

自定义许可证

23KB
441

MallardScript

Version Build Downloads Open Issues License

Hak5 DuckyScript 扩展语言编译器。

安装

cargo install mallardscript

用法

将MallardScript编译为DuckyScript!

mallardscript build --input src/index.ducky --output output/index.ducky

配置

Shell补全

您可以将此放入您的.zshrc文件中(只需确保$HOME/.zsh_functions/在您的fpath中即可)

if [[ ! -f "$HOME/.zsh_functions/_mallardscript" ]]; then
  mallardscript completions --type zsh > "$HOME/.zsh_functions/_mallardscript"
fi

或者您可以用以下方式生成自己的:

mallardscript completions --type $SHELL               # Where $SHELL is zsh,bash,fish,elvish,powershell

开发

使用rust编写。工作流程定义在.envrc.sh中。

路线图

  • 在此项目中直接编码(或通过库引用),因此用户无需编译两次。
  • 包系统二进制文件
  • 类似于.mallardscriptrc的配置文件。
  • 源代码错误将非常不错。可以使用miette实现。还可以查看pest miette

依赖关系

~6.5–9MB
~156K SLoC