#language #duckyscript #grammar #peg #mallardscript #hak5 #parsing-compilation

pest_duckyscript

Hak5 DuckyScript and MallardScript language grammers - used for parsing/compilation

12 major breaking releases

Uses old Rust 2015

14.0.0 Jan 11, 2023
13.0.0 Jan 11, 2023
12.0.0 Jan 11, 2023
11.0.0 Jan 11, 2023
1.0.0 Jan 2, 2023

#37 in #peg


Used in mallardscript

Custom license

86KB
2K SLoC

Pest 1K SLoC // 0.2% comments Rust 845 SLoC // 0.0% comments

pest_duckyscript

Version Build Downloads Open Issues License

Hak5 DuckyScript and MallardScript language grammers - used for parsing/compilation.

Install

cargo install pest_duckyscript

What does it do?

This package contains Parsing Expression Grammar (PEG) files for both DuckyScript and MallardScript.

DuckyScript

See the Official Documentation for what DuckyScript looks like or look at the grammar files in this repository.

MallardScript

Currently a subset of DuckyScript designed to add the following commands:

  • IMPORT relative_path_to.mallardscript: Which will be inlined when built with mallardscript.

Development

Written in rust. You can build and install with the following:

cargo build

Roadmap:

  • Support for DuckyPad syntax.

Dependencies

~3MB
~59K SLoC