Example:
- Create a file HelloWorld.simple in your work directory.
- Open HelloWorld.simple in your plain text editor of choice.
- Copy and paste the code below:1
%%Example of a SIMPLE program that says "Hello, World!%% Define a procedure with name Main: Set Output to value of "Hello, World!", Return Nothing. - Open a command prompt / terminal in the directory.
- Enter
simplexe HelloWorld.simple -e. - The result should look like:
>simplexe HelloWorld.simple -e Validation successful Hello, World! >
The simplexe command has several options that can be entered alongside it, after the file name:
--helpPrints a helper message that briefly describes the command and its options.--argsTo pass anything after it as arguments for the Main function of the program.--dialectTo specify which grammar dialect the code is written with (ENG, ESP, FRA, ITA or ALT).--executeTo execute the .simple file after its validation.--loopTo set the maximum times conditional loops can iterate. Default is 100.--minimalTo reduce the amount of output produced by the interpreter and not by the program itself.--recursionTo set the maximum times functions can be called concurrently. Default is 100.
All options have both longhand and shorthand versions, e.g. --help can also be used as -h.
Order of options doesn't matter except for --args which if present must, obviously, be last.
--args, --dialect, --loop and --recursion require to be followed immediately by opportune values.
Footnotes
-
Make sure the tabulation characters
are not replaced with multiple spaces. ↩