简体   繁体   English

在Red编程语言中,如何编译脚本?

[英]In the Red programming language, how does one compile a script?

I've compiled scripts in Red before, but once I've been away from it for a while, I forget. 我之前用Red编译过脚本,但是一旦我离开它已经有一段时间了,我会忘记。 I thought I'd ask the question here because I'm sure I'm not the only one. 我以为我会在这里问这个问题,因为我确信我不是唯一一个。

How does one compile a script in the Red programming language? 如何用Red编程语言编译脚本?

I've searched my Red distribution folder in the "Docs" directory, and also looked on http://red-lang.org , but didn't see the instructions. 我在“Docs”目录中搜索了我的Red发行文件夹,并查看了http://red-lang.org ,但没有看到说明。 I know I've seen it somewhere before, but I can't seem to find it. 我知道我以前见过它,但我似乎无法找到它。

So basically, thanks to @Blender, the information is available at https://github.com/dockimbel/Red . 基本上,多亏了@Blender,可以访问https://github.com/dockimbel/Red获取相关信息。

I knew I saw the information before, but I couldn't remember where. 我知道我以前看过这些信息,但我不记得在哪里。 I checked the "Docs" folder in the Red distribution, but that didn't have the information there (might be handy to add it). 我检查了Red发行版中的“Docs”文件夹,但那里没有相关信息(可能很方便添加它)。

  1. Start the Rebol interpreter in the folder where the Red files and folders are stored. 在存储Red文件和文件夹的文件夹中启动Rebol解释器。
  2. For Red: >> do/args %red.r "%red/tests/console.red" 对于Red: >> do/args %red.r "%red/tests/console.red"
  3. For Red/System: do/args %rsc.r "%tests/hello.reds" 对于Red / System: do/args %rsc.r "%tests/hello.reds"

See the link for more detailed instructions. 有关详细说明,请参阅链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM