Duckscript is a simple, extendable and embeddable scripting language.
 The language itself has only few rules and most common language features are i

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-20 04:30:03

Duckscript is a simple, extendable and embeddable scripting language. The language itself has only few rules and most common language features are implemented as commands rather than part of the language itself.

This will install duckscript script runner, the standard duckscript SDK and the duckscript CLI. You should then have a duck executable in your ~/.cargo/bin directory. Make sure to add ~/.cargo/bin directory to your PATH variable.

Commands are the basis of everything in duckscript. Commands may execute some action (like printing "Hello World" to the console) or serve as flow control (such as functions or if/else conditions). In order to invoke an action, simply write the action name:

Commands may accept arguments, for example the command echo may accept any number of arguments and it will print all of them. Arguments are separated with the space character. So in the example:

The echo command got 2 arguments: "Hello" and "World". If your argument contains a space, you can wrap the entire argument with the " character as follows:

Leave a Comment