add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

28
pages.zh/common/carp.md Normal file
View File

@@ -0,0 +1,28 @@
# Carp
> Carp 的 REPL 和构建工具。
> 更多信息:<https://carp-lang.github.io/carp-docs/Manual.html>。
- 启动 REPL交互式 shell
`carp`
- 启动带自定义提示符的 REPL
`carp --prompt "{{> }}"`
- 构建一个 `carp` 文件:
`carp -b {{path/to/file.carp}}`
- 构建并运行一个文件:
`carp -x {{path/to/file.carp}}`
- 在启用优化的情况下构建一个文件:
`carp -b --optimize {{path/to/file.carp}}`
- 将一个文件转译为 C 代码:
`carp --generate-only {{path/to/file.carp}}`