Documentations - SRON
  • SRON's Official Documentation
  • Installation
  • Syntax of SRON
  • Executing a SRON code
  • Keywords in SRON
  • Comments in SRON
  • Datatypes in SRON
  • Variables in SRON
  • Memory Ownership Model
  • Operators in SRON
  • Math block
  • if elif else in SRON
  • Loops in SRON
    • For Loop
    • While Loop
    • Foreach Loop
  • Break & Continue
  • Functions in SRON
    • Print functions
    • User Input Functions
    • Type Conversion functions
    • Type Checking functions
    • Math functions
    • Char Functions
    • String Functions
    • List Functions
    • Miscellaneous functions
  • Return in SRON
  • Command Line Arguments
  • Free
  • Rotate
  • Console
  • Sample codes
  • Coding Convention
  • Frequently Asked Questions
  • Credits
  • Contact
  • Donate
Powered by GitBook
On this page
  • To execute a SRON's source code, firstly you have to compile the code and for that you have to use the 'sronc' command.
  • Note: You don't need to mention the file name when using 'sron' command, if you do so... nothing will happen.

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 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 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.

PreviousSyntax of SRONNextKeywords in SRON

Last updated 6 months ago