mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 06:44:07 +10:00
Updatedd license
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios
|
Copyright (c) 2020-2026 Kayne Ruse, KR Game Studios
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
18
README.md
18
README.md
@@ -2,7 +2,7 @@
|
|||||||
<image src="toylogo.png" />
|
<image src="toylogo.png" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="color:red;font-weight: bold;">This is a work in progress, and is not fit for purpose. I hope I can get it to a useable state, but personal issues can often make dedicating myself to a project difficult. Your patience and support is greatly appreciated.</p>
|
**This is a work in progress, and is not yet fit for purpose. I hope I can get it to a useable state, but personal issues can often make dedicating myself to a project difficult. Your patience and support is greatly appreciated.**
|
||||||
|
|
||||||
# Toy v2.x
|
# Toy v2.x
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ This repository holds the reference implementation for Toy version 2.x, written
|
|||||||
# Nifty Features
|
# Nifty Features
|
||||||
|
|
||||||
* Simple C-like/JS-like syntax
|
* Simple C-like/JS-like syntax
|
||||||
* Intermediate AST representation
|
* Intermediate AST and bytecode representations
|
||||||
* Strong, but optional type system
|
* Strong, but optional type system
|
||||||
* First-class functions and closures
|
* First-class functions and closures
|
||||||
* Extensible with imported native code
|
* Extensible with imported native code
|
||||||
@@ -28,15 +28,9 @@ Watch this space.
|
|||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
TODO: Look into cmake
|
Watch this space.
|
||||||
|
|
||||||
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).
|
(`make` and `make tests` might help.)
|
||||||
|
|
||||||
Support for NetBSD is present, but not guaranteed.
|
|
||||||
|
|
||||||
To build the shared library, run `make source`.
|
|
||||||
To build the shared library and repl, run `make repl`.
|
|
||||||
To build and run the test suites, run `make tests` (`make tests-gdb` and `make tests-valgrind` options are also available).
|
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
|
||||||
@@ -48,7 +42,7 @@ Watch this space.
|
|||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
This source code is covered by the Zlib license (see [LICENSE.md](LICENSE.md)).
|
This source code is covered by the Zlib license (see [LICENSE](LICENSE) for details).
|
||||||
|
|
||||||
# Contributors and Special Thanks
|
# Contributors and Special Thanks
|
||||||
|
|
||||||
@@ -64,6 +58,4 @@ Various Anons - Feedback
|
|||||||
|
|
||||||
# Patreon Supporters
|
# Patreon Supporters
|
||||||
|
|
||||||
Watch this space.
|
|
||||||
|
|
||||||
You can show your support and be listed here by joining my [Patreon](https://patreon.com/krgamestudios).
|
You can show your support and be listed here by joining my [Patreon](https://patreon.com/krgamestudios).
|
||||||
|
|||||||
38
repl/main.c
38
repl/main.c
@@ -182,24 +182,26 @@ void versionCmdLine(int argc, const char* argv[]) {
|
|||||||
printf("The Toy Programming Language, Version %d.%d.%d %s\n\n", TOY_VERSION_MAJOR, TOY_VERSION_MINOR, TOY_VERSION_PATCH, TOY_VERSION_BUILD);
|
printf("The Toy Programming Language, Version %d.%d.%d %s\n\n", TOY_VERSION_MAJOR, TOY_VERSION_MINOR, TOY_VERSION_PATCH, TOY_VERSION_BUILD);
|
||||||
|
|
||||||
//copy/pasted from the license file - there's a way to include it directly, but it's too finnicky to bother
|
//copy/pasted from the license file - there's a way to include it directly, but it's too finnicky to bother
|
||||||
const char* license = "\
|
const char* license =
|
||||||
Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios\n\
|
"Copyright (c) 2020-2026 Kayne Ruse, KR Game Studios\n"
|
||||||
\n\
|
"\n"
|
||||||
This software is provided 'as-is', without any express or implied\n\
|
"This software is provided 'as-is', without any express or implied\n"
|
||||||
warranty. In no event will the authors be held liable for any damages\n\
|
"warranty. In no event will the authors be held liable for any damages\n"
|
||||||
arising from the use of this software.\n\
|
"arising from the use of this software.\n"
|
||||||
\n\
|
"\n"
|
||||||
Permission is granted to anyone to use this software for any purpose,\n\
|
"Permission is granted to anyone to use this software for any purpose,\n"
|
||||||
including commercial applications, and to alter it and redistribute it\n\
|
"including commercial applications, and to alter it and redistribute it\n"
|
||||||
freely, subject to the following restrictions:\n\
|
"freely, subject to the following restrictions:\n"
|
||||||
\n\
|
"\n"
|
||||||
1. The origin of this software must not be misrepresented; you must not\n\
|
"1. The origin of this software must not be misrepresented; you must not\n"
|
||||||
claim that you wrote the original software. If you use this software\n\
|
"claim that you wrote the original software. If you use this software\n"
|
||||||
in a product, an acknowledgment in the product documentation would be\n\
|
"in a product, an acknowledgment in the product documentation would be\n"
|
||||||
appreciated but is not required.\n\
|
"appreciated but is not required.\n"
|
||||||
2. Altered source versions must be plainly marked as such, and must not be\n\
|
"2. Altered source versions must be plainly marked as such, and must not be\n"
|
||||||
misrepresented as being the original software.\n\
|
"misrepresented as being the original software.\n"
|
||||||
3. This notice may not be removed or altered from any source distribution.\n\n";
|
"3. This notice may not be removed or altered from any source distribution.\n"
|
||||||
|
"\n"
|
||||||
|
;
|
||||||
|
|
||||||
printf("%s",license);
|
printf("%s",license);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user