diff --git a/docs/syntax.md b/docs/syntax.md index 34f4d21..4a00b0d 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -232,7 +232,7 @@ Converts any type to a string. 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: @@ -272,20 +272,20 @@ Calls a function, with all the arguments in the argument list. The return value 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. -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` -#### 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`. -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`