Added about library

This commit is contained in:
2023-02-06 01:58:25 +11:00
committed by GitHub
parent 3f186c2422
commit bccdab1a32
2 changed files with 32 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ print tally(); //3
* [Quick Start Guide](quick-start-guide) * [Quick Start Guide](quick-start-guide)
* [Types](types) * [Types](types)
* [Standard Library](standard-library) * [Standard Library](standard-library)
* [About Library](about-library)
* [Compound Library](compound-library) (under development) * [Compound Library](compound-library) (under development)
* [Timer Library](timer-library) * [Timer Library](timer-library)
* [Runner Library](runner-library) * [Runner Library](runner-library)

31
about-library.md Normal file
View File

@@ -0,0 +1,31 @@
# About Library
The about library simply provides version info about the current build of Toy.
The about library can usually be accessed with the `import` keyword:
```
import about;
import about as about; //can easily be aliased
```
## major
This variable is the major version number of Toy at the time of compilation.
## minor
This variable is the minor version number of Toy at the time of compilation.
## patch
This variable is the patch version number of Toy at the time of compilation.
## build
This variable is a string representing the date and time that the interpreter was compiled.
## author
This variable contains the name of Toy's lead author, and his game studio.