ZuzuScript
ZuzuScript is a readable scripting language for automation, data wrangling, command-line tools, and small web-facing services.
function greet ( String name ) {
say `Hello, ${name}!`;
}
greet( "world" );
let values := [ 1, 2, 3, 4 ];
say values.map( fn x -> x * 2 );
News
-
New version of the Perl runtime released
-
code.golf has experimental ZuzuScript support
-
zuzu-js 0.1.0 is now available through npm.
-
zuzu-rust 0.1.0 is now available through cargo.
Latest Distributions
- list-util 0.0.2 by tobyink
- pod-parser 0.0.2 by tobyink
- text-lorem 0.0.2 by tobyink
- pod-parser 0.0.1 by tobyink
Readable
Gentle syntax, predictable behaviour, and code that stays easy to revisit.
Practical
Useful built-ins, modules, structured data, and path queries for everyday scripting.
Try ItWhat Else is ZuzuScript Like?
Perl / Raku
ZuzuScript has a Perl-family feel, but with a cleaner and more compact
surface. Features such as say, die,
next, last, regex literals, contexts, and
lexical variables should make Perl programmers feel at home. The first
ZuzuScript implementation was written in Perl, so ZuzuScript inherited
a lot of semantics from Perl.
JavaScript / TypeScript
The day-to-day syntax also resembles JavaScript and TypeScript: braces,
semicolons, let, const, object and array
literals, new Class(...), method calls, callbacks,
async function, await, and task composition all
look familiar from that world. ZuzuScript will happily run right in your
browser too.
Python
Like Python, ZuzuScript is great for small useful programs, automation, CLI tools, data transforms, text munging, web handlers, and readable scripts that can grow into modules when needed. The module import syntax should be familiar too.
JSONPath / XPath / jq
Paths and queries are a first class concept in the language with dedicated operators to query and mutate nested data structures and objects using path-like expressions.
ZuzuScript is Free Software
ZuzuScript is free and open source software. The source code is available from github.com/zuzuscript.