1ea315092b
[tests] move run_tests.sh to test/run_all.sh
2024-06-01 13:53:59 +02:00
0195913dcc
[doc] standard library documentation first draft
2024-06-01 13:53:13 +02:00
02fa9d075d
[internal] clean up format calls in interpolations, add format(val::is string) without quotes
2024-05-29 14:14:59 +02:00
b4fb90602d
[doc] bump version & report version in test runner
2024-05-24 13:33:39 +02:00
03922ebde4
[language] allow newlines between ! and identifier in _!_ call operator
2024-05-21 22:20:29 +02:00
12eb1d8f68
[language] convert identifier to string when used as the name in a pair
2024-05-17 15:12:21 +02:00
13ce7a2efa
[language] flush literals are now --- instead of empty lines
...
Empty lines could lead to unexpected flushes, for example when calling another function where empty lines are used for code presentation.
2024-04-30 23:06:08 +02:00
a8f5cec236
[language] replace inline comment delimiter -- with //
2024-04-29 23:43:52 +02:00
a3dded3935
[api] allow text event data grouping by tag
2024-04-29 23:23:46 +02:00
b192206de0
[stdlib] merge branch! now perform a complete flush before merging by default
...
Otherwise, events written to the buffer before the merge may only be yielded after the merge is already done; if such an event would lead to the script being interrupted, we would likely want the state not to be merged in the first place, hence the change.
2024-04-29 22:29:37 +02:00
892cb2c623
[stdlib] add call to manually invoke functions
2024-04-24 17:50:44 +02:00
aaff625b6c
[language] replace constant symbols with a constant value check function
2024-04-24 16:15:58 +02:00
b534a3c4a2
[language] automatically call text when they appear directly as a statement; remove autocalling of every text returned by a statement
...
The previous behavior, where any Text value returned by a line in a Block would be automatically called, may lead to unexpected Text event being written as it is not obvious which line can return a Text value after evaluation.
The new behavior only triggers if a Text node directly appear in the original script as a statement.
2024-04-23 19:57:36 +02:00
991f9fed35
[test] fix variable redefinition error when rerunning the same script
2024-04-23 19:06:24 +02:00
6d9c3dd403
[language] add inline comments and allow multiline comments
2024-01-16 17:40:26 +01:00
a702f250f9
[language] allow multiline strings
2024-01-16 15:52:16 +01:00
c54fa4344f
[stdlib] add optional default value for table and struct call
2024-01-16 14:34:18 +01:00
78f3c6448e
[language] allow multiline expression between (), [] and {}
2024-01-15 20:03:55 +01:00
1ea06c63eb
[internal] do block parsing at the same time as expression parsing
2024-01-15 17:21:47 +01:00
b6473de4d2
[language] Add multiple assignments, assignment and definitions are now function calls
2024-01-11 01:36:47 +01:00
87afa51baa
[language] Remove _|>_ operator, replace with *_
2024-01-09 18:05:45 +01:00
5d000e2fec
Rename type check to value check
2024-01-09 16:57:43 +01:00
c027c87dc4
Reuse a global state with standard library already loaded in tests, and associated branch handling fixes
2024-01-08 22:23:50 +01:00
bd93dc43dc
Add file loading functions to stdlib
2024-01-08 19:28:14 +01:00
8562e8f18b
Allow function call with tuple and struct without parentheses
2024-01-08 16:41:44 +01:00
51ad18c5a4
LuaFunction cleanup: replace by LuaCall
2024-01-07 20:31:28 +01:00
f198286870
Serialize function scope
2024-01-06 16:24:49 +01:00
b004946266
Error reporting improvements for functions & overloads
2024-01-06 15:14:32 +01:00
7f71569e07
Prefix type checkers with "is", stdlib cleanup
2024-01-06 15:00:08 +01:00
98917c2ca4
Update doc
2024-01-05 01:52:21 +01:00
efb99a9ed7
Add for loops
2024-01-05 01:36:37 +01:00
a212dd7fd1
stdlib cleanup
2024-01-04 20:45:23 +01:00
dac5b74fa6
Add stdlib functions from anselme v1
2024-01-04 20:22:18 +01:00
9a38dfa34f
Persist LuaFunctions & add tests
2024-01-03 19:47:28 +01:00
82b68e09a3
Update tests
2024-01-03 16:46:12 +01:00
93dadb3b5d
Add interactive mode for test runner
2024-01-03 13:49:51 +01:00
68a109391f
Hide internal nodes from stack trace
2024-01-02 15:06:24 +01:00
15f29e3bce
Undefine _ in attached block
2024-01-02 14:35:18 +01:00
a85e7ab0af
Update tests
2024-01-02 00:36:10 +01:00
7635261a3f
Reset randomseed before each test
2024-01-02 00:32:08 +01:00
18dd3ad6bd
Remove -> operator
2024-01-01 17:51:33 +01:00
861877503a
Comments: switch from (( to /* delimiters
...
Double parentheses turned out to conflict too often with normal code. I guess sometimes I shouldn't try to make my own syntax up.
2023-12-31 19:54:54 +01:00
43a745a7a9
Final test batch and associated fixes
2023-12-31 19:41:14 +01:00
050c84921c
Add identifier wrap for aliases
2023-12-31 14:55:28 +01:00
409a2e7095
Firth test batch and associated fixes
2023-12-31 14:30:14 +01:00
aa8dfbd498
Fix interleaved text and choices
2023-12-31 14:25:37 +01:00
0a835a65d8
Fourth test batch
2023-12-30 23:45:30 +01:00
b7761311fe
Aliases: add wrap > operator
2023-12-30 23:44:42 +01:00
2cd910389b
Exported variables: no longer add export scope to every function, allow freely access and modifiy variable in function scope
...
Too many issues with predefining exported variables, and this is more flexible.
2023-12-30 23:43:05 +01:00
0eea4b80a6
Third test batch
2023-12-30 23:39:10 +01:00