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

27 commits

Author SHA1 Message Date
77c6ac6ba2 [api] add LuaText and document built-in event data 2024-11-11 14:35:46 +01:00
876135401c [api] allow adding tags when running/evaluating 2024-11-11 11:22:30 +01:00
ed7fe34853 [doc] update doc 2024-11-09 18:00:56 +01:00
a31fefc68b [doc] update doc 2024-06-04 16:24:05 +02:00
a5bbe0eeb0 [doc] update doc, tutorial first draft 2024-06-02 22:53:36 +02:00
82d2555a7d [doc] fix invalid links 2024-06-01 14:27:22 +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
157f71a7fa [doc] improve anselme operator title extraction, check for unused defers 2024-05-29 17: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
dee374d42f [doc] update 2024-05-19 20:00:27 +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
6cfb7fd7a3 [language] remove integer division // operator 2024-04-29 23:38:21 +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
9b05bc143b [doc] update api doc 2024-01-17 14:40:03 +01:00
98917c2ca4 Update doc 2024-01-05 01:52:21 +01:00
12c32bb8a2 Cleaning 2024-01-03 13:49:24 +01:00
9e73269cda Update doc 2023-12-31 19:43:44 +01:00
5dd971ff8f Move anselme code into its own directory 2023-12-29 18:47:36 +01:00
9acde377c2 Update docs 2023-12-28 17:42:14 +01:00
809613ef8b LuaJIT compatibility
Spoiler alert: Anselme run ~1.5x slower in LuaJIT than Lua 5.3/5.4. I didn't expected LuaJIT to be able to optimize anything with my super performant and cache friendly AST walker interpreter, but being this much slower is kinda impressive.
2023-12-28 17:37:57 +01:00
fe351b5ca4 Anselme v2.0.0-alpha rewrite
Woke up and felt like changing a couple things. It's actually been worked on for a while, little at a time...

The goal was to make the language and implementation much simpler. Well I don't know if it really ended up being simpler but it sure is more robust.

Main changes:
* proper first class functions and closures supports! proper scoping rules! no more namespace shenanigans!
* everything is an expression, no more statements! make the implementation both simpler and more complex, but it's much more consistent now! the syntax has massively changed as a result though.
* much more organized and easy to modify codebase: one file for each AST node, no more random fields or behavior set by some random node exceptionally, everything should now follow the same API defined in ast.abstract.Node

Every foundational feature should be implemented right now. The vast majority of things that were possible in v2 are possible now; some things aren't, but that's usually because v2 is a bit more sane.
The main missing things before a proper release are tests and documentation. There's a few other things that might be implemented later, see the ideas.md file.
2023-12-22 13:25:28 +01:00