mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed a typo
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: page
|
layout: page
|
||||||
title: Development Timetable
|
title: Contributions
|
||||||
order: 4
|
order: 4
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -56,11 +56,11 @@ The types available in Toy are:
|
|||||||
| `string` | string | A piece of text, supports UTF-8, [in theory](https://github.com/krgamestudios/Toy/issues/174). |
|
| `string` | string | A piece of text, supports UTF-8, [in theory](https://github.com/krgamestudios/Toy/issues/174). |
|
||||||
| `array` | array | A series of values stored sequentially in memory. |
|
| `array` | array | A series of values stored sequentially in memory. |
|
||||||
| `table` | table | A series key-value pairs stored in such a way that allows for fast lookups. Booleans, functions, opaques and `null` can't be used as keys. |
|
| `table` | table | A series key-value pairs stored in such a way that allows for fast lookups. Booleans, functions, opaques and `null` can't be used as keys. |
|
||||||
| `function` | function | A chunk of reusable code that takes zero or more parameters, and returFunctions are declared with the `fn` keyword. |
|
| `function` | function | A chunk of reusable code that takes zero or more parameters, and returns zero or more results. Functions are declared with the `fn` keyword. |
|
||||||
| `opaque` | opaque | This value is unusable in the script, but can be passed from one imported function to another. |
|
| `opaque` | opaque | This value is unusable in the script, but can be passed from one imported function to another. |
|
||||||
| `any` | any | The default type when nothing is specified. Theis can hold any value. |
|
| `any` | any | The default type when nothing is specified. Theis can hold any value. |
|
||||||
|
|
||||||
*Note: Functions and opaques are not fully implemented at the time of writing, so details may change.*
|
*Note: Arrays, tables, functions and opaques are not fully implemented at the time of writing, so details may change.*
|
||||||
|
|
||||||
## Control Flow
|
## Control Flow
|
||||||
|
|
||||||
@@ -115,6 +115,10 @@ while (true) {
|
|||||||
|
|
||||||
*Note: The `for` loop is coming, eventually, but isn't vital right now.*
|
*Note: The `for` loop is coming, eventually, but isn't vital right now.*
|
||||||
|
|
||||||
|
## Arrays and Tables
|
||||||
|
|
||||||
|
Watch this space.
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
Watch this space.
|
Watch this space.
|
||||||
|
|||||||
4
index.md
4
index.md
@@ -10,7 +10,7 @@ title: The Toy Programming Language
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="justify-self: center;">
|
<div style="justify-self: center;">
|
||||||
<img src="https://github.com/krgamestudios/Toy/actions/workflows/continuous-integration-v2.yml/badge.svg">
|
<a href="https://github.com/krgamestudios/Toy"><img src="https://github.com/krgamestudios/Toy/actions/workflows/continuous-integration-v2.yml/badge.svg"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
The Toy Programming Language is an imperative, bytecode-interpreted, embeddable scripting language. Rather than functioning independently, it serves as part of another program, the "host". This design allows for straightforward customization by both the host's developers and end users, achieved by exposing program logic through text files.
|
The Toy Programming Language is an imperative, bytecode-interpreted, embeddable scripting language. Rather than functioning independently, it serves as part of another program, the "host". This design allows for straightforward customization by both the host's developers and end users, achieved by exposing program logic through text files.
|
||||||
@@ -25,5 +25,5 @@ This website presents the documentation for Toy version 2.x.
|
|||||||
* First-class functions and closures
|
* First-class functions and closures
|
||||||
* Extensible with importable native code
|
* Extensible with importable native code
|
||||||
* Can re-direct output, error and assert failure messages
|
* Can re-direct output, error and assert failure messages
|
||||||
* Open-Source under the Zlib license
|
* Open-Source under the zlib license
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user