Executing a SRON code

To execute a SRON's source code, firstly you have to compile the code and for that you have to use the 'sronc' command.

   sronc filename.sron

'sronc' command calls the SRON's compiler which checks your source file and then creates the bytecode and saves that into '*.srb' file.

Now your code is compiled, you have to use the 'sron' command to start execution of your code.

   sron

the 'sron' command starts the SRON's interpreter which automatically loads the 'Main.srb' file in the current directory and starts the execution.

Note: You don't need to mention the file name when using 'sron' command, if you do so... nothing will happen.

Last updated