Language

The syntax of the language looks like simplified C or Java programming language, it is case-sensitive. The script enters main(argv) function at the beginning.

Examples

List the script parameters.

function main(argv)
{
	num = argv.size();
	for(i = 0; i < num; i++)
		echo("argv[" + i + "]: " + argv[i] + "\n");
}
[woq@evm graphal]$ make RPATH_ORIGIN=yes dist
...
[woq@evm graphal]$ cd build/dist/
[woq@evm dist]$ ./graphal_cli ../samples/12_script_parameters.txt test parameters
[i] *** ENTERING SCRIPT MAIN ***
argv[0]: ../samples/12_script_parameters.txt
argv[1]: test
argv[2]: parameters
[i] *** EXITING SCRIPT MAIN, OK ***
[i] Return value: NULL
[i] *** EXITING MAIN, OK ***
[woq@evm dist]$