Update syntax

This commit is contained in:
2025-08-25 13:51:22 +10:00
parent f5140e3833
commit e74e5ea548

View File

@@ -232,7 +232,7 @@ Converts any type to a string.
Usage: `tostring $value &var` Usage: `tostring $value &var`
### Functions and function specific features (ALL WORK IN PROGRESS) ### Functions and function specific features (Experimental, please report bugs!)
Some symbols specific to this category: Some symbols specific to this category:
@@ -272,20 +272,20 @@ Calls a function, with all the arguments in the argument list. The return value
Usage: `call !function &var Usage: `call !function &var
### Interacting with Libraries (ALL WORK IN PROGRESS) ### Interacting with Libraries
#### use #### use (Experimental, please report bugs!)
Attempts to import another Ground program. Gets inserted wherever the use statement is. Any code (including code outside function declarations) will be executed. Attempts to import another Ground program. Gets inserted wherever the use statement is. Any code (including code outside function declarations) will be executed.
Note: Ground will check the directory where the program is stored when trying to find imported programs. If that fails, it will check the directory set in the $GROUND_PATH environment variable set by your system. The '.grnd' extension is appended automatically. Note: Ground will check the directory where the program is being run from when trying to find imported programs. If that fails, it will check the directory set in the $GROUND_LIBS environment variable set by your system. The '.grnd' extension is appended automatically.
Usage: `use $stringvalue` Usage: `use $stringvalue`
#### extern #### extern (WORK IN PROGRESS)
Attempts to import a shared object library written for Ground. All functions in the external library will be usable with `call`. Attempts to import a shared object library written for Ground. All functions in the external library will be usable with `call`.
Note: Ground will check the directory where the program is stored when trying to find external programs. If that fails, it will check the directory set in the $GROUND_PATH environment variable set by your system. The '.so', '.dll', etc extension is appended automatically. Note: Ground will check the directory where the program is being run from when trying to find external programs. If that fails, it will check the directory set in the $GROUND_LIBS environment variable set by your system. The '.so', '.dll', etc extension is appended automatically.
Usage: `extern $stringvalue` Usage: `extern $stringvalue`