Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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?

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. I know I've seen it somewhere before, but I can't seem to find it.

like image 562
Respectech Avatar asked Dec 05 '25 15:12

Respectech


1 Answers

So basically, thanks to @Blender, the information is available at 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).

  1. Start the Rebol interpreter in the folder where the Red files and folders are stored.
  2. For Red: >> do/args %red.r "%red/tests/console.red"
  3. For Red/System: do/args %rsc.r "%tests/hello.reds"

See the link for more detailed instructions.

like image 58
Respectech Avatar answered Dec 10 '25 19:12

Respectech



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!