Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/travisstaloch/roc-cli-platform-zig
An experimental roc lang cli platform in zig
https://github.com/travisstaloch/roc-cli-platform-zig
hacktoberfest roc-lang zig
Last synced: 18 days ago
JSON representation
An experimental roc lang cli platform in zig
- Host: GitHub
- URL: https://github.com/travisstaloch/roc-cli-platform-zig
- Owner: travisstaloch
- License: mit
- Created: 2022-10-10T04:37:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-15T19:25:56.000Z (over 2 years ago)
- Last Synced: 2025-01-19T17:16:13.223Z (25 days ago)
- Topics: hacktoberfest, roc-lang, zig
- Language: Zig
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cli-platform-zig
An experimental [roc lang](https://github.com/roc-lang) cli platform in [zig](https://ziglang.org). Adapated from roc's [rust cli platform](https://github.com/roc-lang/roc/tree/main/examples/cli/cli-platform).# dependencies
- a roc compiler in PATH
- zig version 0.9.1 in PATH# usage
1. clone this repo
2. reference [platform/main.roc](platform/main.roc) in your roc app like this:
`packages { pf: "path/to/platform/main.roc" }` (see [test/main.roc](test/main.roc) for an example)# test
```console
./test/run.sh # builds and runs test/main.roc and other testing scripts
```
# status
- [x] Stdout.line, Stderr.line
- [x] File.readBytes - includes some error handling
- [x] Process.withArgs
- [x] Env.{var,cwd,setCwd,exePath}see [test/main.roc](test/main.roc) to see what works.
# notes
- copied to platform/ from roc repo
- examples/cli/tui-platform/host.zig
- examples/cli/cli-platform/main.roc
- examples/cli/cli-platform/*.roc
- crates/compiler/builtins/bitcode/src/{utils,list}.zig# todo
- File.write, delete, ...# contributors
- bhansconnect@github