Updated README

This commit is contained in:
2025-02-28 11:30:01 +11:00
parent d3b59eb0da
commit 4b21e61df0
2 changed files with 6 additions and 21 deletions

View File

@@ -16,11 +16,11 @@ This repository holds the reference implementation for Toy version 2.x, written
* 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
# Syntax # Syntax
The following examples aren't fully functional yet, see [Timetable](#timetable). The following examples aren't fully functional yet - see the ['features' label in the issue tracker](https://github.com/Ratstail91/Toy/issues?q=is%3Aissue%20state%3Aopen%20label%3Afeature) for more information.
```toy ```toy
//fizzbuzz example //fizzbuzz example
@@ -75,22 +75,6 @@ print tally(); //2
print tally(); //3 print tally(); //3
``` ```
# Timetable
Here's a flexible outline for the upcoming feature milestones. On each review date, I'll adjust my projections as needed.
| Feature | Time Span | Review Date |
| --- | :---: | :---: |
| [Arrays & Tables](https://github.com/Ratstail91/Toy/issues/155) | - | 1st Jan ✅ |
| [Control Flow](https://github.com/Ratstail91/Toy/issues/152) | 2 weeks | 15th Jan ✅ |
| [Functions](https://github.com/Ratstail91/Toy/issues/163) | 6 weeks* | 26th Feb |
| [Dot Operator & Slices](https://github.com/Ratstail91/Toy/issues/156) | 2 weeks | 12th Mar |
| [Native Libraries](https://github.com/Ratstail91/Toy/issues/165) | 2 weeks | 26th Mar |
| [Standard Libraries](https://github.com/Ratstail91/Toy/issues/164) | 2 weeks | 9th Apr |
| [Documentation](https://github.com/Ratstail91/Toy/issues/169) | - | - |
*Info about and strategies for missed milestones can be found on [my blog here](https://krgamestudios.com/posts/2025-01-29-missed-by-a-mile).
# Building # Building
Supported platforms are: `linux-latest`, `windows-latest`, `macos-latest`, using [GitHub's standard runners](https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories). Supported platforms are: `linux-latest`, `windows-latest`, `macos-latest`, using [GitHub's standard runners](https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories).
@@ -103,11 +87,13 @@ To build and run the test suites, run `make tests` (`make tests-gdb` and `make t
# Tools # Tools
*Coming Soon - I want the main features mostly working first.* Information about the tools can be found in the [issue tracker](https://github.com/Ratstail91/Toy/issues?q=is%3Aissue%20state%3Aopen%20label%3Atooling).
# Documentation # Documentation
The WIP documentation can be found here: https://v2.toylang.com/ Information about the documentation can be found in the [issue tracker](https://github.com/Ratstail91/Toy/issues?q=is%3Aissue%20state%3Aopen%20label%3Adocumentation).
For the time being, the WIP documentation can be found here: https://v2.toylang.com/
# License # License

View File

@@ -25,7 +25,6 @@ Toy_Bucket* Toy_allocateBucket(unsigned int capacity) {
} }
unsigned char* Toy_partitionBucket(Toy_Bucket** bucketHandle, unsigned int amount) { unsigned char* Toy_partitionBucket(Toy_Bucket** bucketHandle, unsigned int amount) {
//BUGFIX: the endpoint must be aligned to the word size, otherwise you'll get a bus error from moving pointers //BUGFIX: the endpoint must be aligned to the word size, otherwise you'll get a bus error from moving pointers
amount = (amount + 3) & ~3; amount = (amount + 3) & ~3;