More stuff

This commit is contained in:
2025-08-11 10:07:05 +10:00
parent 566d3aa0fb
commit 09033cd432
3 changed files with 207 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ Appends an item to a list.
Usage: `listappend *list $var`
### String Operations (ALL WORK IN PROGRESS)
### String Operations
#### getstrsize
@@ -200,7 +200,7 @@ Checks if the left value is lesser than the right value. Outputs a boolean to a
Usage: `lesser $value $value &var`
### Type Conversions
### Type Conversions (ALL WORK IN PROGRESS)
#### stoi
@@ -248,6 +248,24 @@ Usage: `pusharg $value`
#### call
Calls a function, with all the arguments in the argument list.
Calls a function, with all the arguments in the argument list. The return value will be put in the specified variable.
Usage: `call !function`
Usage: `call !function &var
### Interacting with Libraries (ALL WORK IN PROGRESS)
#### use
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.
Usage: `use $stringvalue`
#### extern
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.
Usage: `extern $stringvalue`