Main
MGL script |
MathGL library supports (from version 1.3) the simplest scripts for data handling and plotting. These scripts can be used independently (with the help of mgl2png, mgl2eps, mgl2svg programs and others) or in the frame of the library using. MGL script language is rather simple. Each string is a command. First word of string is the name of command. Other words are command arguments. Command may have up to 500 arguments (at least for now). Words are separated from each other by space or tabulation symbol. The upper or lower case of words is suficient, i.e. variables a and A are different variables. Symbol If string contain references to external parameters (substrings "$0", "$1" ... "$9") then before execution the values of parameter will be substituted instaed of reference. It allows to use the same MGL script for different parameters (filenames, paths, condition and so on). Argument can be a variable name, a string or a number. Variable name is arbitrary combination of symbols (except spaces and Detailed description of the MGL language here. More examples and hints can be found here. |