Skip to content

Hello World

mystborn edited this page Jun 22, 2018 · 3 revisions

Hello, World!

Every programming language needs a hello world example. So here is one for TaffyScript:

script main {
    print("Hello, World!");
}

In order to compile the code, first you'll need to create a project folder with a build file in it. Then create a file with the above code in it and save it with the .tfs extension. Then from the command line you can compile it like so:

path/to/tsc.exe path/to/project/folder /r

The /r will tell the compiler to run the output assembly.

Clone this wiki locally