Skip to content

0) Getting started

rookieCookies edited this page Aug 19, 2022 · 1 revision

Installation

Installing the CryScript Interpreter is as simple as a click!

  • For Windows, click here
  • For MacOS, click here
  • For Linux,
    1. Download the source code from the github page
    2. Download the Rust Toolchain from the official page
    3. Extract the source into a folder
    4. Run cargo build --release and then wait for it to compile
    5. Navigate to the target folder and you should see another folder called release, after opening the release folder you should see the application

Hello World!

Tryin' a new language is no easy task, fortunately CryScript makes it quite easy to start! First, let's create a file that we will be entering our code into! For the purposes of this tutorial we'll call it script.cry Now enter the following text into the file we created

println("Hello world!")

That should be pretty self-explanatory. We're calling a function called println and giving it the text "Hello World!" and now all that's left is running the file! Move the file you downloaded from the installation section and then run it! If everything went as expected you'll be prompted with a text asking for a file path, simply enter script.cry and press enter

Voila! Hello World!

Clone this wiki locally