1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
Commit graph

250 commits

Author SHA1 Message Date
a5bbe0eeb0 [doc] update doc, tutorial first draft 2024-06-02 22:53:36 +02:00
9e01be548c [api] add translation template generation function in anselme module 2024-06-02 22:22:46 +02:00
82d2555a7d [doc] fix invalid links 2024-06-01 14:27:22 +02:00
1ea315092b [tests] move run_tests.sh to test/run_all.sh 2024-06-01 13:53:59 +02:00
8364f5b9a2 [doc] tutorial outline 2024-06-01 13:53:24 +02:00
0195913dcc [doc] standard library documentation first draft 2024-06-01 13:53:13 +02:00
41dede808e [internal] fix typo in string interpolation 2024-05-29 20:24:35 +02:00
157f71a7fa [doc] improve anselme operator title extraction, check for unused defers 2024-05-29 17:30:34 +02:00
3ba67b839f [stdlib] add is typed 2024-05-29 14:30:34 +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
bdc4f8a13a [doc] update gendocs for Anselme standard library and add title and defer tags 2024-05-28 18:14:20 +02:00
a631334b31 [doc] language reference first draft
I mean I don't really plan to do a second draft but it could be a lot better so let's pretend it's a only a draft.
2024-05-26 16:00:19 +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
69da1ff223 [stdlib] add tag(text, tags) 2024-05-20 23:43:07 +02:00
f2945d4478 [stdlib] add math functions 2024-05-20 21:50:48 +02:00
dee374d42f [doc] update 2024-05-19 20:00:27 +02:00
2bcb319c0a [stdlib] allow named arguments in call 2024-05-19 16:11:11 +02:00
12eb1d8f68 [language] convert identifier to string when used as the name in a pair 2024-05-17 15:12:21 +02:00
b47e1940e9 [stdlib] remove is callable, add can dispatch
Since whether something can be called or not depends on the arguments, according to the dispatch rules.
2024-05-16 17:35:57 +02:00
d04344e9ff [internal] fix incorrect source tracking when reaching end of multiline expresssion 2024-05-16 17:16:01 +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
5836eb2a1d [internal] fix merge() merging unrelated branches 2024-04-30 22:53:41 +02:00
a8f5cec236 [language] replace inline comment delimiter -- with // 2024-04-29 23:43:52 +02:00
6cfb7fd7a3 [language] remove integer division // operator 2024-04-29 23:38:21 +02:00
a3dded3935 [api] allow text event data grouping by tag 2024-04-29 23:23:46 +02:00
2a7e1a4be5 [internal] update notes 2024-04-29 22:33:32 +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
bbf7b7a437 [documentation] incomplete documentation update 2024-04-24 16:39:43 +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
12f67986e7 [documentation] add license 2024-04-20 17:31:17 +02:00
d2a973d734 [internal] minor cleaning 2024-04-20 17:30:44 +02:00
cee00eb13d [internal] normalize newlines and bom 2024-01-19 14:37:06 +01:00
7e29fb87b4 [language] add +_ operator 2024-01-19 14:35:18 +01:00
9b05bc143b [doc] update api doc 2024-01-17 14:40:03 +01:00
5d9af414fa [internal] ; operators now build a block instead of function call 2024-01-17 14:07:14 +01: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
eaadb4ace6 [stdlib] fix integer division 2024-01-16 14:40:28 +01:00
c54fa4344f [stdlib] add optional default value for table and struct call 2024-01-16 14:34:18 +01:00
5733b9f74b [language] error on undefined key in struct and table 2024-01-16 14:33:47 +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
09b73301b4 [internal] Build indentation in Block:format instead of Node:format 2024-01-15 16:37:08 +01:00
b32521cb60 [internal] Clean resume_manager 2024-01-11 13:50:04 +01:00
b6473de4d2 [language] Add multiple assignments, assignment and definitions are now function calls 2024-01-11 01:36:47 +01:00
760181eaf9 [stdlib] Add keep return(function) 2024-01-09 18:06:04 +01:00