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' command calls the SRON's compiler which 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.
the 'sron' command starts the SRON's interpreter which searches for the 'main.srb' file in the terminal's directory, it starts the execution if the file is found otherwise throws an runtime error(or exception).
Note: You don't need to mention the file name when using 'sron' command, if you do so... nothing will happen.
Last updated