You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-13Lines changed: 30 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,21 @@ This is a snapshot of the latest Release of the **TeaScript C++ Library** for em
3
3
**Extend** your applications dynamically during runtime with TeaScript.<br>
4
4
Once your application has **customization points** for TeaScript each installation/distribution can be extended/modified **without** expensive re-compile and deployment procedure with arbitrary and individual functionality.
5
5
6
-
This Library can be used as **header only** library and is **dependency free** for fully C++20 supporting compilers / C++ standard libraries.
7
-
8
-
Provided with this Library is a **demo app** for illustrating the C++ API usage and a basic way for execute TeaScript files.
9
-
10
6
**TeaScript** is an embeddable and standalone **Multi-Paradigm script language** close to C++ syntax but easier to use.<br>
11
7
More information about TeaScript is available here: https://tea-age.solutions/teascript/overview-and-highlights/
12
8
9
+
This Library can be used as a **header only** library and is **dependency free** for fully C++20 supporting compilers / C++ standard libraries.
10
+
11
+
Provided with this Library is a **demo app** for illustrating the C++ API usage and a basic way for execute TeaScript files.
12
+
13
13
A Library bundle with more example scripts as well as a full featured **TeaScript Host Application** for execute **standalone** script files,
14
-
an interactive shell, a REPL, debugging options, time measurement and more can be downloaded for free here: <br>
14
+
an interactive shell, a REPL, debugging options, time measurement and more can be downloaded for free here (including its source): <br>
15
15
https://tea-age.solutions/downloads/
16
16
17
17
# About TeaScript
18
-
**What is new in TeaScript 0.12.0?** TeaScript 0.12 comes with Colored Output, Format String, Forall Loop, Sequences and interactive debugging.<br>
@@ -138,7 +138,7 @@ More examples are in the [teascript_demo.cpp](demo/teascript_demo.cpp) of this r
138
138
139
139
# Example TeaScript Code
140
140
141
-
(Better syntax highlighting on the TeaScript home page.)
141
+
Better syntax highlighting is on the TeaScript home page or in Notepad++ with the provided [SyntaxHighlighting.xml](TeaScript_SyntaxHighlighting_Notepad%2B%2B.xml)
142
142
143
143
```cpp
144
144
def age := 42 // mutable variable of type i64
@@ -198,12 +198,15 @@ call( squared, 3 ) // passing function as parameter. result: 9
198
198
call( func (z) { z + z }, 3 ) // passing lambda as parameter. result: 6
and in the provided example files in the demo directory: [demo](demo/)
202
203
203
204
204
205
# Supported compiler (tested with)
205
206
206
-
Visual Studio 2022 (17.2 or newer)
207
+
Visual Studio 2022 (17.2 or newer)<br><br>
208
+
Depending of the code size it might be required to add the /bigobj flag to the additional settings.<br>
209
+
For details see on [StackOverflow](https://stackoverflow.com/questions/15110580/penalty-of-the-msvs-compiler-flag-bigobj)
207
210
- Visual Studio 2019 also works (starting from 16.11.14)
208
211
209
212
g++ 11.3
@@ -286,9 +289,23 @@ Third, usage of the high-level C++ API only. This API will stay backward compati
286
289
The high-level API consists of the classes teascript::Engine / teascript::EngineBase, all public getters in teascript::ValueObject as well as everything in Exception.hpp / SourceLocation.hpp and version.h (except if otherwise noted).
287
290
288
291
# License
289
-
The TeaScript C++ Library is 100% Open Source and Free Software and licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (AGPL-3.0): see LICENSE.TXT <br>
292
+
TeaScript is 100% Open Source and Free Software and licensed under the Mozilla Public License 2.0.<br>
293
+
294
+
The Mozilla Public License can be read here https://www.mozilla.org/en-US/MPL/2.0/ <br>
295
+
296
+
This license has the following advantages for TeaScript and for its users:<br>
297
+
298
+
- it can be linked statically (if all conditions are fulfilled).
299
+
- it is explicit compatible with AGPL, GPL and LGPL.
300
+
- it is compatible with Apache, MIT, BSD, Boost licenses (and others).
301
+
- Larger works (means Applications using TeaScript) can be distributed closed source (or under a compatible license) as long as the conditions are fulfilled.
302
+
- For the upcoming module system it means that a new first- or third-party module for TeaScript may use any compatible license like MPL-2.0, (A)GPL, MIT, Apache and so on.
303
+
<br>
304
+
Many questions regarding the MPL are also answered in the official FAQ: https://www.mozilla.org/en-US/MPL/2.0/FAQ/<br>
305
+
306
+
If you have further questions regarding the new license don’t hesitate to contact me.
307
+
290
308
291
-
If you cannot or don’t want use this specific open source license, you may ask for a different license.
292
309
293
310
# Disclaimer
294
311
This software is provided “as-is” without any express or implied warranty. In no event shall the author be held liable for any damages arising from the use of this software.
0 commit comments