mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
docs: spelling mistakes correction
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
# Runner Library
|
||||
|
||||
The runner library is used to execute one script from inside another. It also has functions that allow you to retrieve variables from the other script.
|
||||
@@ -21,7 +22,7 @@ This function does a lot of work:
|
||||
* It validates the file path using the drive syntax
|
||||
* It reads in the source code of the script file
|
||||
* It compiles the source script into bytecode
|
||||
* It constructs and intializes an Interpreter
|
||||
* It constructs and initializes an Interpreter
|
||||
* It packages it all into an opaque variable and returns it
|
||||
|
||||
### loadScriptBytecode(path: string): opaque
|
||||
@@ -31,7 +32,7 @@ This is used to load an external bytecode file into an opaque variable.
|
||||
This function does a lot of work:
|
||||
|
||||
* It validates the file path using the drive syntax
|
||||
* It constructs and intializes an Interpreter
|
||||
* It constructs and initializes an Interpreter
|
||||
* It packages it all into an opaque variable and returns it
|
||||
|
||||
Note: This function resembles `loadScript()`, but skips the compilation step.
|
||||
@@ -58,4 +59,4 @@ This function frees a script's resources, cleaning up any memory that is no long
|
||||
|
||||
### checkScriptDirty(self: opaque): bool
|
||||
|
||||
This function returns true of the script is "dirty", otherwise it returns false.
|
||||
This function returns true if the script is "dirty", otherwise it returns false.
|
||||
|
||||
Reference in New Issue
Block a user