Skip to main content

A zig script runner

Project description

zigrun

Runs zig expressions, statements, and scripts directly from the command line.

Example

zigrun --expr -c '7 + 9'
> 16
# Shorthand for --expr -c
zigrun --eval '@sizeOf(u64)'
> 8
# Even shorter shorthand
zigrun -e '"Foo" ++ "Bar"'
> FooBar
zigrun --stmt <<EOF
std.debug.print("Foo: {}\n", .{6});
// Nice aliases
print("Bar: {}\n", .{6});
println("Foo", .{7});
EOF
> Foo: 6
> Bar: 7
> Foo: 7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zigrun-0.1.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page