Skip to content

jamii/zest

main BranchesTags Go to file Code

Folders and files

Name| Name| Last commit message| Last commit date
---|---|---|---

Latest commit

History

580 Commits
build| build
docs| docs
honggfuzz-corpus| honggfuzz-corpus
lib| lib
.gitignore| .gitignore
fuzz-c.sh| fuzz-c.sh
fuzz.sh| fuzz.sh
license.txt| license.txt
readme.md| readme.md
shell.nix| shell.nix
test.html| test.html
test.js| test.js
test.sh| test.sh
test_web.js| test_web.js
View all files

Repository files navigation

Zest 是一种(仍在开发中)的编程语言,用于构建既具有可塑性易于阅读的系统。

目标是:

一个好的开始阅读的地方是 docs/rationale.md。您还可以在 scattered-thoughts.net/#zest 找到更多笔记。

状态

文档和测试

docs 包含嵌入式测试,如下所示:

// code
1 + 1
// result
2

当 lax 和 strict dialects 产生不同的结果时,测试中将有两个结果:

// code
1 + 'foo'
// lax result
Cannot call zest.Builtin.add with these args: { 1, 'foo' }
// strict result
Cannot call zest.Builtin.add with these args: { i64, string }

strict dialect 目前无法从 wasm 沙箱内部打印值,因此任何返回非整数值的测试都只会在 strict dialect 中打印 undefined

'foo'
'foo'
undefined

该实现正在变化中。通常,docs 文本将描述预期行为,但测试将显示当前行为。可以使用 zig run lib/test.zig -- --rewrite docs/*.md 自动更新测试。

关于

没有提供描述、网站或主题。

资源

Readme

License

Apache-2.0 license Activity

Stars

68 stars

Watchers

1 watching

Forks

2 forks Report repository

Releases

No releases published

Sponsor this project

Sponsor Learn more about GitHub Sponsors

Packages 0

No packages published

Languages