How to create an Hello-World-Application

The well known 'Hello-World'-application is quite easy to implement. The command you need to use is the print command. After it you have to add your text you want to print. As a developer you call this a „string“, because you have a string of characters. A string starts and ends with quote signs. So if you want to make 'Hello World!' to an string you have to type:

"Hello World"

Now you have to say Genesys that it has to be printed on your console. Therefor you use the print command and put the string behind. As in most programming languages a command is complete if a semicolon is following.

print "Hello World!";

That's it. print is an internal command, you do not need to include something, you do not need make a class or a function around it. As soon as Genesys has found an instruction it will create a function and a class around it by itself.

Put that line into a text editor of your choice and save it as 'helloworld.g'. Now call the Genesys-compiler to interprete it:

$ gsys -r helloworld.h

Hello World!

Well done!